Browse Source

Add 4 more tests.

Jing Yang 4 years ago
parent
commit
f942d0c709
1 changed files with 40 additions and 0 deletions
  1. 40 0
      kvraft/tests/service_test.rs

+ 40 - 0
kvraft/tests/service_test.rs

@@ -367,3 +367,43 @@ fn persist_one_client() {
         ..Default::default()
     });
 }
+
+#[test]
+fn persist_concurrent() {
+    generic_test(GenericTestParams {
+        clients: 5,
+        crash: true,
+        ..Default::default()
+    });
+}
+
+#[test]
+fn persist_concurrent_unreliable() {
+    generic_test(GenericTestParams {
+        clients: 5,
+        unreliable: true,
+        crash: true,
+        ..Default::default()
+    });
+}
+
+#[test]
+fn persist_partition() {
+    generic_test(GenericTestParams {
+        clients: 5,
+        partition: true,
+        crash: true,
+        ..Default::default()
+    });
+}
+
+#[test]
+fn persist_partition_unreliable() {
+    generic_test(GenericTestParams {
+        clients: 5,
+        unreliable: true,
+        partition: true,
+        crash: true,
+        ..Default::default()
+    });
+}