Skip to content

Commit 9b93ca3

Browse files
author
mpv1989
committed
Fix test
1 parent 35607a9 commit 9b93ca3

File tree

1 file changed

+10
-4
lines changed

1 file changed

+10
-4
lines changed

src/test/java/com/arangodb/internal/DefaultHostHandlerTest.java

+10-4
Original file line numberDiff line numberDiff line change
@@ -53,10 +53,16 @@ public void multipleHosts() {
5353
hosts.add(h2);
5454

5555
final HostHandler hh = new DefaultHostHandler(hosts);
56-
assertThat(hh.get(), is(h1));
57-
assertThat(hh.change(), is(h2));
58-
assertThat(hh.get(), is(h2));
59-
assertThat(hh.change(), is(nullValue()));
56+
for (int i = 0; i < 3; i++) {
57+
assertThat(hh.get(), is(h1));
58+
assertThat(hh.change(), is(h2));
59+
assertThat(hh.get(), is(h2));
60+
if (i < 2) {
61+
assertThat(hh.change(), is(h1));
62+
} else {
63+
assertThat(hh.change(), is(nullValue()));
64+
}
65+
}
6066
}
6167

6268
}

0 commit comments

Comments
 (0)