diff --git a/public/gwas-test/src/test/scala/nl/lumc/sasc/biopet/pipelines/gwastest/GwasTestTest.scala b/public/gwas-test/src/test/scala/nl/lumc/sasc/biopet/pipelines/gwastest/GwasTestTest.scala
index a5f66aa1e7dd9e5959f309e9ec13e4ce02673ff7..001ca44ce6cc6bddd309a3b4b20f8ccd010bc3f5 100644
--- a/public/gwas-test/src/test/scala/nl/lumc/sasc/biopet/pipelines/gwastest/GwasTestTest.scala
+++ b/public/gwas-test/src/test/scala/nl/lumc/sasc/biopet/pipelines/gwastest/GwasTestTest.scala
@@ -76,6 +76,7 @@ object GwasTestTest {
   vcfFile.deleteOnExit()
 
   val phenotypeFile = File.createTempFile("gwas.", ".txt")
+  phenotypeFile.deleteOnExit()
 
   val outputDir = Files.createTempDir()
   outputDir.deleteOnExit()