浏览代码

Always print the client op count.

Jing Yang 4 年之前
父节点
当前提交
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");
         }
     }