Skip to content

Commit 6c8a74e

Browse files
authored
Merge pull request #202 from DataDog/vickenty/uds-test
Fix UnixSocketTest#resist_dsd_restart
2 parents 855f909 + 5cdf70a commit 6c8a74e

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/test/java/com/timgroup/statsd/UnixSocketTest.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -129,8 +129,9 @@ public void resist_dsd_restart() throws Exception {
129129
// Delete the socket file, client should throw an IOException
130130
lastException = new Exception();
131131
socketFile.delete();
132+
133+
client.gauge("mycount", 21);
132134
while(lastException.getMessage() == null) {
133-
client.gauge("mycount", 20);
134135
Thread.sleep(10);
135136
}
136137
assertThat(lastException.getMessage(), containsString("No such file or directory"));

0 commit comments

Comments
 (0)