Skip to content

Commit a253bb5

Browse files
committed
make tests pass on windows
1 parent 2e973aa commit a253bb5

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

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

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,9 @@
11
package com.timgroup.statsd;
22

33
import org.junit.After;
4+
import org.junit.Assume;
45
import org.junit.Before;
6+
import org.junit.BeforeClass;
57
import org.junit.Test;
68
import java.io.IOException;
79
import java.io.File;
@@ -24,6 +26,11 @@ public void handle(Exception exception) {
2426
lastException = exception;
2527
}
2628

29+
@BeforeClass
30+
public static void linuxOnly() throws IOException {
31+
Assume.assumeThat(System.getProperty("os.name"), containsString("Linux"));
32+
}
33+
2734
@Before
2835
public void start() throws IOException {
2936
tmpFolder = Files.createTempDirectory(System.getProperty("java-dsd-test")).toFile();

0 commit comments

Comments
 (0)