Merge pull request #64 from djmitche/issue57

Add RemoteServer to the taskchampion crate
This commit is contained in:
Dustin J. Mitchell
2020-11-27 20:23:39 -05:00
committed by GitHub
10 changed files with 322 additions and 29 deletions

View File

@@ -57,8 +57,7 @@ mod test {
// set up the storage contents..
{
let mut txn = server_box.txn().unwrap();
txn.set_client_latest_version_id(client_id, Uuid::new_v4())
.unwrap();
txn.new_client(client_id, Uuid::new_v4()).unwrap();
txn.add_version(client_id, version_id, parent_version_id, b"abcd".to_vec())
.unwrap();
}
@@ -119,8 +118,7 @@ mod test {
// create the client, but not the version
{
let mut txn = server_box.txn().unwrap();
txn.set_client_latest_version_id(client_id, Uuid::new_v4())
.unwrap();
txn.new_client(client_id, Uuid::new_v4()).unwrap();
}
let server_state = ServerState::new(server_box);
let mut app = test::init_service(App::new().service(app_scope(server_state))).await;