Skip to content

Commit 6f6e51e

Browse files
committed
rollback and try another approach at making windows happy
1 parent a5942fe commit 6f6e51e

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

ibm-mq-metrics/src/test/java/io/opentelemetry/ibm/mq/opentelemetry/ConfigWrapperTest.java

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,10 @@ class ConfigWrapperTest {
2020
@BeforeEach
2121
void setUp() {
2222
file = ConfigWrapperTest.class.getResource("/conf/config.yml").getFile();
23+
// Windows resources can contain a colon, which can't be mapped to a Path cleanly
24+
if(file.contains(":")){
25+
file = file.replaceFirst(":", "");
26+
}
2327
}
2428

2529
@Test

0 commit comments

Comments
 (0)