Skip to content

Commit

Permalink
Merge pull request #202 from DataDog/vickenty/uds-test
Browse files Browse the repository at this point in the history
Fix UnixSocketTest#resist_dsd_restart
  • Loading branch information
vickenty authored Sep 27, 2022
2 parents 855f909 + 5cdf70a commit 6c8a74e
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/test/java/com/timgroup/statsd/UnixSocketTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -129,8 +129,9 @@ public void resist_dsd_restart() throws Exception {
// Delete the socket file, client should throw an IOException
lastException = new Exception();
socketFile.delete();

client.gauge("mycount", 21);
while(lastException.getMessage() == null) {
client.gauge("mycount", 20);
Thread.sleep(10);
}
assertThat(lastException.getMessage(), containsString("No such file or directory"));
Expand Down

0 comments on commit 6c8a74e

Please sign in to comment.