[NOTICK] Fix a test error to allow tests to pass in Jenkins (#6202)

This commit is contained in:
James Higgs 2020-04-30 10:57:47 +01:00 committed by GitHub
parent 2febf13ea4
commit 7db25b8986
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -42,8 +42,8 @@ class ResourceGeneratorTest {
// Now check that all resource files that should be created are
val tempDir = createTempDir()
resourceGenerator.createResources(missing, tempDir.toPath())
val createdFiles = tempDir.walkTopDown().filter { it.isFile && it.extension == "properties" }.map { it.name }.toList()
assertEquals(missing, createdFiles)
val createdFiles = tempDir.walkTopDown().filter { it.isFile && it.extension == "properties" }.map { it.name }.toSet()
assertEquals(missing.toSet(), createdFiles)
// Now check that a created file has the expected properties and values
val properties = Properties()