mirror of
https://github.com/facebook/Haxl.git
synced 2024-10-04 06:07:32 +03:00
2a20601b3b
Summary: This unit test demonstrates 2 things: 1) It is possible for Haxl computation to be interrupted in ways that block the scheduler indefinitely 2) Calling `sanitizeEnv` on the env from such a computation allows us to reuse it for future computations. If we don't do that, future computations can still block even without any exception thrown during the 2nd run. Reviewed By: DylanZA Differential Revision: D22397981 fbshipit-source-id: 48dfca49ab3485693bc772ff346945779809d9e8
45 lines
1.4 KiB
Haskell
45 lines
1.4 KiB
Haskell
-- Copyright (c) 2014-present, Facebook, Inc.
|
|
-- All rights reserved.
|
|
--
|
|
-- This source code is distributed under the terms of a BSD license,
|
|
-- found in the LICENSE file.
|
|
|
|
{-# LANGUAGE OverloadedStrings #-}
|
|
module AllTests (allTests) where
|
|
|
|
import TestExampleDataSource
|
|
import BatchTests
|
|
import CoreTests
|
|
import DataCacheTest
|
|
import AdoTests
|
|
import OutgoneFetchesTests
|
|
import ProfileTests
|
|
import MemoizationTests
|
|
import MonadAsyncTest
|
|
import TestBadDataSource
|
|
import FullyAsyncTest
|
|
import WriteTests
|
|
import ParallelTests
|
|
import StatsTests
|
|
|
|
import Test.HUnit
|
|
|
|
allTests :: Test
|
|
allTests = TestList
|
|
[ TestLabel "ExampleDataSource" TestExampleDataSource.tests
|
|
, TestLabel "BatchTests-future" $ BatchTests.tests True
|
|
, TestLabel "BatchTests-sync" $ BatchTests.tests False
|
|
, TestLabel "CoreTests" CoreTests.tests
|
|
, TestLabel "DataCacheTests" DataCacheTest.tests
|
|
, TestLabel "AdoTests" $ AdoTests.tests False
|
|
, TestLabel "OutgoneFetchesTest" OutgoneFetchesTests.tests
|
|
, TestLabel "ProfileTests" ProfileTests.tests
|
|
, TestLabel "MemoizationTests" MemoizationTests.tests
|
|
, TestLabel "MonadAsyncTests" MonadAsyncTest.tests
|
|
, TestLabel "BadDataSourceTests" TestBadDataSource.tests
|
|
, TestLabel "FullyAsyncTest" FullyAsyncTest.tests
|
|
, TestLabel "WriteTest" WriteTests.tests
|
|
, TestLabel "ParallelTest" ParallelTests.tests
|
|
, TestLabel "StatsTests" StatsTests.tests
|
|
]
|