diff --git a/crd-generator/cli/src/test/java/io/fabric8/crd/generator/cli/SourceArgumentConverterTest.java b/crd-generator/cli/src/test/java/io/fabric8/crd/generator/cli/SourceArgumentConverterTest.java index ead4620d845..fd17740799e 100644 --- a/crd-generator/cli/src/test/java/io/fabric8/crd/generator/cli/SourceArgumentConverterTest.java +++ b/crd-generator/cli/src/test/java/io/fabric8/crd/generator/cli/SourceArgumentConverterTest.java @@ -43,7 +43,7 @@ void givenValidCustomResourceClassArgument_thenConvertToCustomResourceClassArgum @Test void givenExistingFile_thenConvertToFileToScanArgument(@TempDir File tempDir) throws IOException { - File exampleFile = new File(tempDir, "example-file.txt"); + File exampleFile = new File(tempDir, "example-file.txt").getCanonicalFile(); Files.write(exampleFile.toPath(), Collections.singletonList("some-content")); SourceParameterTypeConverter converter = new SourceParameterTypeConverter();