Pārlūkot izejas kodu

Sleep for 1 second before partitioning.

Jing Yang 4 gadi atpakaļ
vecāks
revīzija
1009c40b39
1 mainītis faili ar 2 papildinājumiem un 0 dzēšanām
  1. 2 0
      kvraft/tests/service_test.rs

+ 2 - 0
kvraft/tests/service_test.rs

@@ -127,6 +127,8 @@ fn generic_test(test_params: GenericTestParams) {
         });
 
         let partition_result = if partition {
+            // Let the clients perform some operations without interruption.
+            sleep_millis(1000);
             let config = cfg.clone();
             let partition_stop_clone = partition_stop.clone();
             Some(std::thread::spawn(|| {