From e8c71d8cc9d0138cd7f48616ce64b50ae0a1b932 Mon Sep 17 00:00:00 2001 From: Nobuaki Sukegawa Date: Mon, 23 Nov 2015 19:51:37 +0900 Subject: THRIFT-3442 Run CMake tests on Appveyor Client: Test Patch: Nobuaki Sukegawa This closes #713 --- test/hs/TestServer.hs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'test/hs/TestServer.hs') diff --git a/test/hs/TestServer.hs b/test/hs/TestServer.hs index 90ec11e78..4a88649b8 100755 --- a/test/hs/TestServer.hs +++ b/test/hs/TestServer.hs @@ -31,7 +31,7 @@ import Network import System.Environment import System.Exit import System.IO -import System.Posix.Unistd +import Control.Concurrent (threadDelay) import qualified System.IO as IO import qualified Data.HashMap.Strict as Map import qualified Data.HashSet as Set @@ -241,7 +241,7 @@ instance ThriftTest_Iface TestHandler where testOneway _ i = do System.IO.putStrLn $ "testOneway(" ++ show i ++ "): Sleeping..." - sleep (fromIntegral i) + threadDelay $ (fromIntegral i) * 1000000 System.IO.putStrLn $ "testOneway(" ++ show i ++ "): done sleeping!" main :: IO () -- cgit v1.2.1