Commit af6ea914 authored by Guillaume Surrel's avatar Guillaume Surrel
Browse files

Add assertion instead of counting errors.

parent f5cd478e
...@@ -167,10 +167,7 @@ public class Distrib_2serv_BadNetwork extends TestCase { ...@@ -167,10 +167,7 @@ public class Distrib_2serv_BadNetwork extends TestCase {
int index = msg.getIntProperty("index"); int index = msg.getIntProperty("index");
if (index != next) { assertEquals(index, next);
errors++;
next = index;
}
next--; next--;
if (index == 0) { if (index == 0) {
......
...@@ -157,7 +157,6 @@ public class Distrib_2serv_T_BadNetwork extends TestCase { ...@@ -157,7 +157,6 @@ public class Distrib_2serv_T_BadNetwork extends TestCase {
int counter = 0; int counter = 0;
int next = -1; int next = -1;
int errors = 0;
public void onMessage(Message m) { public void onMessage(Message m) {
try { try {
...@@ -167,10 +166,7 @@ public class Distrib_2serv_T_BadNetwork extends TestCase { ...@@ -167,10 +166,7 @@ public class Distrib_2serv_T_BadNetwork extends TestCase {
int index = msg.getIntProperty("index"); int index = msg.getIntProperty("index");
if (index != next) { assertEquals(index, next);
errors++;
next = index;
}
next--; next--;
if (index == 0) { if (index == 0) {
......
...@@ -157,7 +157,6 @@ public class Distrib_2serv_T_Http extends TestCase { ...@@ -157,7 +157,6 @@ public class Distrib_2serv_T_Http extends TestCase {
int counter = 0; int counter = 0;
int next = -1; int next = -1;
int errors = 0;
public void onMessage(Message m) { public void onMessage(Message m) {
try { try {
...@@ -167,10 +166,8 @@ public class Distrib_2serv_T_Http extends TestCase { ...@@ -167,10 +166,8 @@ public class Distrib_2serv_T_Http extends TestCase {
int index = msg.getIntProperty("index"); int index = msg.getIntProperty("index");
if (index != next) { assertEquals(index, next);
errors++;
next = index;
}
next--; next--;
if (index == 0) { if (index == 0) {
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment