on develop help sign in
Fix GC test
commit0b3e62b8efc39c861066e610a7961a941a69255c authorRyan Trinkle <ryan.trinkle@gmail.com> dateSun 30 Apr 2017, 21:41 (10 years ago) parent3349a8e
1 file changed+1
reflex-dom-core/test/gc.hs+1
reflex-dom-core/test/gc.hs+1
@@ -38,6 +38,7 @@ main = do
3838 postBuild <- getPostBuild
3939 let f n = liftIO $ if n < 3000
4040 then do performMajorGC
41+ threadDelay 1000 -- Wait a bit to allow requestAnimationFrame to call its callback sometimes; this value was experimentally determined
4142 gcStats <- getGCStats
4243 print $ currentBytesUsed gcStats
4344 when (currentBytesUsed gcStats < minBytesAllowed) $ do