Commit af6ea914 authored by Guillaume Surrel's avatar Guillaume Surrel

Add assertion instead of counting errors.

parent f5cd478e
......@@ -167,10 +167,7 @@ public class Distrib_2serv_BadNetwork extends TestCase {
int index = msg.getIntProperty("index");
if (index != next) {
errors++;
next = index;
}
assertEquals(index, next);
next--;
if (index == 0) {
......
......@@ -157,7 +157,6 @@ public class Distrib_2serv_T_BadNetwork extends TestCase {
int counter = 0;
int next = -1;
int errors = 0;
public void onMessage(Message m) {
try {
......@@ -167,10 +166,7 @@ public class Distrib_2serv_T_BadNetwork extends TestCase {
int index = msg.getIntProperty("index");
if (index != next) {
errors++;
next = index;
}
assertEquals(index, next);
next--;
if (index == 0) {
......
......@@ -157,7 +157,6 @@ public class Distrib_2serv_T_Http extends TestCase {
int counter = 0;
int next = -1;
int errors = 0;
public void onMessage(Message m) {
try {
......@@ -167,10 +166,8 @@ public class Distrib_2serv_T_Http extends TestCase {
int index = msg.getIntProperty("index");
if (index != next) {
errors++;
next = index;
}
assertEquals(index, next);
next--;
if (index == 0) {
......
Markdown is supported
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