Skip to content

Commit eb5119f

Browse files
Artem LabazinArtem Labazin
authored andcommitted
Add test
1 parent 042130d commit eb5119f

1 file changed

Lines changed: 9 additions & 4 deletions

File tree

client/src/test/java/io/appulse/epmd/java/client/LocalEpmdClientTest.java

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -105,16 +105,21 @@ public void register () throws Exception {
105105

106106
@Test
107107
public void connectionBroken () {
108-
val creation = client.register("register", 8971, R3_ERLANG, TCP, R6, R6);
109-
assertThat(creation).isNotEqualTo(0);
110-
111108
LocalEpmdHelper.kill();
112109

113110
assertThat(LocalEpmdHelper.isRunning())
114111
.isFalse();
115112

116113
assertThatExceptionOfType(EpmdConnectionException.class)
117-
.isThrownBy(() -> client.lookup("register"));
114+
.isThrownBy(() -> client.lookup("popa"));
115+
}
116+
117+
@Test
118+
public void dumpEmpty () {
119+
val nodes = client.dumpAll();
120+
assertThat(nodes)
121+
.isNotNull()
122+
.isEmpty();
118123
}
119124

120125
@Test

0 commit comments

Comments
 (0)