Distributed database pattern built.

Co-Authored-By: kay@zed.dev
This commit is contained in:
Mikayla Maki 2022-11-14 13:18:44 -08:00
parent 2a5565ca93
commit 4798161118
28 changed files with 893 additions and 937 deletions

View file

@ -1,6 +1,6 @@
use crate::{
db::{Db, NewUserParams, ProjectId, UserId},
rpc::{Executor, Server},
db::{NewUserParams, ProjectId, TestDb, UserId},
rpc::{Executor, Server, Store},
AppState,
};
@ -12,7 +12,6 @@ use client::{
User, UserStore, RECEIVE_TIMEOUT,
};
use collections::{BTreeMap, HashMap, HashSet};
use db as SqliteDb;
use editor::{
self, ConfirmCodeAction, ConfirmCompletion, ConfirmRename, Editor, Redo, Rename, ToOffset,
ToggleCodeActions, Undo,
@ -5838,11 +5837,7 @@ impl TestServer {
Project::init(&client);
cx.update(|cx| {
workspace::init(
app_state.clone(),
cx,
SqliteDb::open_in_memory("integration tests"),
);
workspace::init(app_state.clone(), cx);
call::init(client.clone(), user_store.clone(), cx);
});