Skip to content

Commit 1c99197

Browse files
watashifacebook-github-bot
authored andcommitted
Fix profling build for tests (#146)
Summary: Fix profling build for tests and update TARGETS to include profling build for tests in contbuild. Closes #146 Reviewed By: simonmar Differential Revision: D34542444 fbshipit-source-id: 0e188f5b31bf30e684dbcb1447cbfeac779add02
1 parent 6deb0ca commit 1c99197

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tests/DataCacheTest.hs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -56,10 +56,10 @@ instance Hashable (CacheableReq x) where
5656

5757

5858
newResult :: a -> IO (IVar u w a)
59-
newResult a = IVar <$> newIORef (IVarFull (Ok a NilWrites))
59+
newResult a = newFullIVar (Ok a NilWrites)
6060

6161
takeResult :: IVar u w a -> IO (ResultVal a w)
62-
takeResult (IVar ref) = do
62+
takeResult IVar{ivarRef = ref} = do
6363
e <- readIORef ref
6464
case e of
6565
IVarFull a -> return a

0 commit comments

Comments
 (0)