소스 검색

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");
         }
     }