added fix to server and unit tests

This commit is contained in:
Mitchell 2020-08-01 12:42:54 +01:00
parent d26b2676fb
commit a63fb3019c
1 changed files with 4 additions and 0 deletions

View File

@ -413,6 +413,10 @@ mod tests{
let msg = "!success:";
transmit_data(&stream_one, msg);
}
let dur = time::Duration::from_millis(500);
thread::sleep(dur);
let msg = "!disconnect:";
transmit_data(&stream_one, msg);
transmit_data(&stream_two, msg);