Fix tests on travis
[opengl.git] / test / Test.hs
index 11114d91fa310b56555e317eec517dfffb14e073..9319a779ee22cc4f2cac5d9e7563a16c878e3ae7 100644 (file)
@@ -229,6 +229,12 @@ main = hspec $ do
   describe "getCompletions" $
     it "works" $ runSession "hie" def "test/data/renamePass" $ do
       doc <- openDoc "Desktop/simple.hs" "haskell"
+
+      -- wait for module to be loaded
+      skipMany loggingNotification
+      noDiagnostics
+      noDiagnostics
+
       item:_ <- getCompletions doc (Position 5 5)
       liftIO $ do
         item ^. label `shouldBe` "interactWithUser"