Skip to content

Commit 15eeb8a

Browse files
committed
Try to fix race condition
1 parent 7308dcb commit 15eeb8a

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -113,8 +113,8 @@ public void resist_dsd_restart() throws Exception {
113113
assertThat(lastException.getMessage(), containsString("Connection refused"));
114114

115115
// Delete the socket file, client should throw an IOException
116-
lastException = new Exception();
117116
socketFile.delete();
117+
lastException = new Exception();
118118

119119
client.gauge("mycount", 21);
120120
while(lastException.getMessage() == null) {

0 commit comments

Comments
 (0)