From 4ed40fa5d50fbfa99f6b1c7c6d635ffeb00f6e77 Mon Sep 17 00:00:00 2001 From: spaced4ndy <8711996+spaced4ndy@users.noreply.github.com> Date: Mon, 17 Jul 2023 20:33:25 +0400 Subject: [PATCH] enable a test in CI ("should resume sending file after restart") (#800) --- tests/XFTPAgent.hs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tests/XFTPAgent.hs b/tests/XFTPAgent.hs index 9eaa0f23e..b2b97e3cb 100644 --- a/tests/XFTPAgent.hs +++ b/tests/XFTPAgent.hs @@ -37,7 +37,7 @@ xftpAgentTests = around_ testBracket . describe "Functional API" $ do it "should send and receive file" testXFTPAgentSendReceive it "should resume receiving file after restart" testXFTPAgentReceiveRestore it "should cleanup rcv tmp path after permanent error" testXFTPAgentReceiveCleanup - xit'' "should resume sending file after restart" testXFTPAgentSendRestore + it "should resume sending file after restart" testXFTPAgentSendRestore it "should cleanup snd prefix path after permanent error" testXFTPAgentSendCleanup it "should delete sent file on server" testXFTPAgentDelete it "should resume deleting file after restart" testXFTPAgentDeleteRestore @@ -255,6 +255,7 @@ testXFTPAgentSendRestore = withGlobalLogging logCfgNoLogs $ do liftIO $ sfId' `shouldBe` sfId -- prefix path should be removed after sending file + threadDelay 100000 doesDirectoryExist prefixPath `shouldReturn` False doesFileExist encPath `shouldReturn` False