Skip to content

Commit d580215

Browse files
committed
Fix: avoid simultaneous test starts for thirtyfour.
1 parent d07175e commit d580215

File tree

1 file changed

+6
-0
lines changed
  • server/tests/overall_core

1 file changed

+6
-0
lines changed

server/tests/overall_core/mod.rs

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -853,6 +853,12 @@ mod test2 {
853853

854854
#[tokio::test]
855855
async fn test_client() -> Result<(), Box<dyn Error + Send + Sync>> {
856+
// If both thirtyfour tests start at the same time, both fail; perhaps
857+
// there's some confusion when two requests care made to the same webserver
858+
// from two clients within the same process? In order to avoid then, insert
859+
// a delay to hopefully start this test at a different time than
860+
// `test_server_core`.
861+
sleep(Duration::from_millis(100)).await;
856862
test2::harness(test_client_core, prep_test_dir!()).await
857863
}
858864

0 commit comments

Comments
 (0)