Fix race in the tests

This commit is contained in:
Aleksey Kladov 2020-03-28 13:19:05 +01:00
parent f7df0b56a7
commit 12297ab675
3 changed files with 11 additions and 2 deletions

View file

@ -83,9 +83,10 @@ pub fn project(fixture: &str) -> Server {
pub struct Server {
req_id: Cell<u64>,
messages: RefCell<Vec<Message>>,
dir: TempDir,
_thread: jod_thread::JoinHandle<()>,
client: Connection,
/// XXX: remove the tempdir last
dir: TempDir,
}
impl Server {