Skip to content

Commit

Permalink
Add test for low+high ports
Browse files Browse the repository at this point in the history
This test should fail without the leading zeros fix found a few commits
before this one.
  • Loading branch information
codablock committed Feb 19, 2020
1 parent 0d47abf commit 82be9da
Showing 1 changed file with 9 additions and 0 deletions.
Expand Up @@ -62,4 +62,13 @@ public void nonListening() {

assertFalse("InternalCommandPortListeningCheck detects a non-listening port among many", result);
}

@Test
public void lowAndHighPortListening() {
final InternalCommandPortListeningCheck check = new InternalCommandPortListeningCheck(container, ImmutableSet.of(100, 8080));

final Boolean result = check.call();

assertTrue("InternalCommandPortListeningCheck identifies a low and a high port", result);
}
}

0 comments on commit 82be9da

Please sign in to comment.