diff --git a/shiva/src/test/scala/nl/lumc/sasc/biopet/pipelines/shiva/variantcallers/HaploTypeCallerGvcfTest.scala b/shiva/src/test/scala/nl/lumc/sasc/biopet/pipelines/shiva/variantcallers/HaploTypeCallerGvcfTest.scala
index 820efe247a00971db595a49e871ea721a7ad8d30..f07376157878f0c0807f13fca1d1410886721890 100644
--- a/shiva/src/test/scala/nl/lumc/sasc/biopet/pipelines/shiva/variantcallers/HaploTypeCallerGvcfTest.scala
+++ b/shiva/src/test/scala/nl/lumc/sasc/biopet/pipelines/shiva/variantcallers/HaploTypeCallerGvcfTest.scala
@@ -19,7 +19,7 @@ class HaploTypeCallerGvcfTest extends TestNGSuite with Matchers {
     hc.biopetScript()
 
     hc.getGvcfs.size shouldBe 3
-    hc.getGvcfs.keys.toList shouldEqual samples
+    hc.getGvcfs.keys.toList.sorted shouldEqual samples.sorted
   }
 
   def createInputMap(samples: List[String]): Map[String, File] = {