Просмотр исходного кода

Always print the client op count.

Jing Yang 4 лет назад
Родитель
Сommit
3a42e12271
1 измененных файлов с 2 добавлено и 5 удалено
  1. 2 5
      kvraft/tests/service_test.rs

+ 2 - 5
kvraft/tests/service_test.rs

@@ -167,11 +167,8 @@ fn generic_test(test_params: GenericTestParams) {
                 .get(index.to_string())
                 .expect(&format!("Key {} should exist.", index));
             assert_eq!(real_result, last_result);
-            assert!(
-                op_count > 10,
-                "Client committed only {} operations",
-                op_count
-            );
+            eprintln!("Client {} committed {} operations", index, op_count);
+            assert!(op_count > 10, "Client committed less than 10 operations");
         }
     }