summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBMatajsz <90217645+BMatajsz@users.noreply.github.com>2024-12-03 12:47:55 -0500
committerBMatajsz <90217645+BMatajsz@users.noreply.github.com>2024-12-03 12:47:55 -0500
commitb0214bbc7e7a7ee6aac9dca2610060ac0f88dc77 (patch)
treeaa184461fd3611e4e439975bb3263ebafc39c085
parent450a17a490e6a37c36f4fc6e67b0454d266fe88b (diff)
downloadsoen423-b0214bbc7e7a7ee6aac9dca2610060ac0f88dc77.zip
Modified args in test
-rw-r--r--SystemTest.log6
-rw-r--r--src/test/java/derms/test/SystemTest.java8
2 files changed, 7 insertions, 7 deletions
diff --git a/SystemTest.log b/SystemTest.log
index d919d3c..0b9da65 100644
--- a/SystemTest.log
+++ b/SystemTest.log
@@ -1,3 +1,3 @@
-[2024-12-03 12:37:50] REPLICA 1: {BYZANTINE: FALSE}
-[2024-12-03 12:37:50] REPLICA 1: {CRASH: FALSE}
-[2024-12-03 12:38:10] [FAILED: Fail: No response from any server]
+[2024-12-03 12:45:40] REPLICA 1: {BYZANTINE: FALSE}
+[2024-12-03 12:45:40] REPLICA 1: {CRASH: FALSE}
+[2024-12-03 12:46:00] [FAILED: Fail: No response from any server]
diff --git a/src/test/java/derms/test/SystemTest.java b/src/test/java/derms/test/SystemTest.java
index 3a69bfb..818b4e9 100644
--- a/src/test/java/derms/test/SystemTest.java
+++ b/src/test/java/derms/test/SystemTest.java
@@ -87,7 +87,7 @@ class SystemTest {
@Test
void testByzantine() throws IOException {
// Replica 1
- String[] argsRM = {"1", "MTL", IP, "1", "0"};
+ String[] argsRM = {"1", "MTL", IP, IP, "1", "0"};
// [TODO]
// Run the main function of the desired replica, for example:
@@ -104,7 +104,7 @@ class SystemTest {
@Test
void testCrash() throws IOException {
// Replica 1
- String[] argsRM = {"1", "MTL", IP, "0", "1"};
+ String[] argsRM = {"1", "MTL", IP, IP, "0", "1"};
// [TODO]
// Run the main function of the desired replica, for example:
@@ -121,8 +121,8 @@ class SystemTest {
@Test
void testCombined() throws IOException {
// Replica 1 and 2
- String[] argsRM1 = {"1", "MTL", IP, "1", "0"};
- String[] argsRM3 = {"3", "MTL", IP, "0", "1"};
+ String[] argsRM1 = {"1", "MTL", IP, IP, "1", "0"};
+ String[] argsRM3 = {"3", "MTL", IP, IP, "0", "1"};
// [TODO]
// Run the main function of the desired TWO replicas, for example: