We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2e973aa commit a253bb5Copy full SHA for a253bb5
src/test/java/com/timgroup/statsd/UnixSocketTest.java
@@ -1,7 +1,9 @@
1
package com.timgroup.statsd;
2
3
import org.junit.After;
4
+import org.junit.Assume;
5
import org.junit.Before;
6
+import org.junit.BeforeClass;
7
import org.junit.Test;
8
import java.io.IOException;
9
import java.io.File;
@@ -24,6 +26,11 @@ public void handle(Exception exception) {
24
26
lastException = exception;
25
27
}
28
29
+ @BeforeClass
30
+ public static void linuxOnly() throws IOException {
31
+ Assume.assumeThat(System.getProperty("os.name"), containsString("Linux"));
32
+ }
33
+
34
@Before
35
public void start() throws IOException {
36
tmpFolder = Files.createTempDirectory(System.getProperty("java-dsd-test")).toFile();
0 commit comments