diff options
Diffstat (limited to 'tests/Network/BitTorrent/DHT')
-rw-r--r-- | tests/Network/BitTorrent/DHT/MessageSpec.hs | 4 | ||||
-rw-r--r-- | tests/Network/BitTorrent/DHT/QuerySpec.hs | 2 | ||||
-rw-r--r-- | tests/Network/BitTorrent/DHT/RoutingSpec.hs | 2 | ||||
-rw-r--r-- | tests/Network/BitTorrent/DHT/SessionSpec.hs | 5 | ||||
-rw-r--r-- | tests/Network/BitTorrent/DHT/TestData.hs | 2 | ||||
-rw-r--r-- | tests/Network/BitTorrent/DHT/TokenSpec.hs | 2 |
6 files changed, 9 insertions, 8 deletions
diff --git a/tests/Network/BitTorrent/DHT/MessageSpec.hs b/tests/Network/BitTorrent/DHT/MessageSpec.hs index 4ec875dd..ab6e1ea5 100644 --- a/tests/Network/BitTorrent/DHT/MessageSpec.hs +++ b/tests/Network/BitTorrent/DHT/MessageSpec.hs | |||
@@ -8,7 +8,7 @@ import Data.ByteString.Lazy as BL | |||
8 | import Data.Default | 8 | import Data.Default |
9 | import Data.List as L | 9 | import Data.List as L |
10 | import Data.Maybe | 10 | import Data.Maybe |
11 | import Network.BitTorrent.Core | 11 | import Network.BitTorrent.Address |
12 | import Network.BitTorrent.DHT.Message | 12 | import Network.BitTorrent.DHT.Message |
13 | import qualified Network.KRPC as KRPC (def) | 13 | import qualified Network.KRPC as KRPC (def) |
14 | import Network.KRPC hiding (def) | 14 | import Network.KRPC hiding (def) |
@@ -17,9 +17,9 @@ import Test.Hspec | |||
17 | import Test.QuickCheck | 17 | import Test.QuickCheck |
18 | import System.Timeout | 18 | import System.Timeout |
19 | 19 | ||
20 | import Data.TorrentSpec () | ||
20 | import Network.BitTorrent.CoreSpec () | 21 | import Network.BitTorrent.CoreSpec () |
21 | import Network.BitTorrent.DHT.TokenSpec () | 22 | import Network.BitTorrent.DHT.TokenSpec () |
22 | import Data.Torrent.InfoHashSpec () | ||
23 | 23 | ||
24 | 24 | ||
25 | instance MonadLogger IO where | 25 | instance MonadLogger IO where |
diff --git a/tests/Network/BitTorrent/DHT/QuerySpec.hs b/tests/Network/BitTorrent/DHT/QuerySpec.hs index d25bd120..81c3b45b 100644 --- a/tests/Network/BitTorrent/DHT/QuerySpec.hs +++ b/tests/Network/BitTorrent/DHT/QuerySpec.hs | |||
@@ -9,7 +9,7 @@ import Data.Default | |||
9 | import Data.List as L | 9 | import Data.List as L |
10 | import Test.Hspec | 10 | import Test.Hspec |
11 | 11 | ||
12 | import Network.BitTorrent.Core | 12 | import Network.BitTorrent.Address |
13 | import Network.BitTorrent.DHT | 13 | import Network.BitTorrent.DHT |
14 | import Network.BitTorrent.DHT.Session | 14 | import Network.BitTorrent.DHT.Session |
15 | import Network.BitTorrent.DHT.Query | 15 | import Network.BitTorrent.DHT.Query |
diff --git a/tests/Network/BitTorrent/DHT/RoutingSpec.hs b/tests/Network/BitTorrent/DHT/RoutingSpec.hs index c4a33357..aeccff5f 100644 --- a/tests/Network/BitTorrent/DHT/RoutingSpec.hs +++ b/tests/Network/BitTorrent/DHT/RoutingSpec.hs | |||
@@ -8,7 +8,7 @@ import Data.Maybe | |||
8 | import Test.Hspec | 8 | import Test.Hspec |
9 | import Test.QuickCheck | 9 | import Test.QuickCheck |
10 | 10 | ||
11 | import Network.BitTorrent.Core | 11 | import Network.BitTorrent.Address |
12 | import Network.BitTorrent.DHT.Routing as T | 12 | import Network.BitTorrent.DHT.Routing as T |
13 | 13 | ||
14 | import Network.BitTorrent.CoreSpec hiding (spec) | 14 | import Network.BitTorrent.CoreSpec hiding (spec) |
diff --git a/tests/Network/BitTorrent/DHT/SessionSpec.hs b/tests/Network/BitTorrent/DHT/SessionSpec.hs index bb32cf0e..a5376c32 100644 --- a/tests/Network/BitTorrent/DHT/SessionSpec.hs +++ b/tests/Network/BitTorrent/DHT/SessionSpec.hs | |||
@@ -5,17 +5,18 @@ import Control.Concurrent | |||
5 | import Control.Exception | 5 | import Control.Exception |
6 | import Control.Monad.Reader | 6 | import Control.Monad.Reader |
7 | import Control.Monad.Trans.Resource | 7 | import Control.Monad.Trans.Resource |
8 | import Data.Conduit.Lazy | ||
8 | import Data.Default | 9 | import Data.Default |
9 | import Data.List as L | 10 | import Data.List as L |
10 | import Test.Hspec | 11 | import Test.Hspec |
11 | import Test.QuickCheck | 12 | import Test.QuickCheck |
12 | 13 | ||
13 | import Network.BitTorrent.Core | 14 | import Network.BitTorrent.Address |
14 | import Network.BitTorrent.DHT | 15 | import Network.BitTorrent.DHT |
15 | import Network.BitTorrent.DHT.Message | 16 | import Network.BitTorrent.DHT.Message |
16 | import Network.BitTorrent.DHT.Session | 17 | import Network.BitTorrent.DHT.Session |
17 | 18 | ||
18 | import Data.Torrent.InfoHashSpec () | 19 | import Data.TorrentSpec () |
19 | import Network.BitTorrent.CoreSpec () | 20 | import Network.BitTorrent.CoreSpec () |
20 | import Network.BitTorrent.DHT.TokenSpec () | 21 | import Network.BitTorrent.DHT.TokenSpec () |
21 | 22 | ||
diff --git a/tests/Network/BitTorrent/DHT/TestData.hs b/tests/Network/BitTorrent/DHT/TestData.hs index 2e000a77..e9473cbb 100644 --- a/tests/Network/BitTorrent/DHT/TestData.hs +++ b/tests/Network/BitTorrent/DHT/TestData.hs | |||
@@ -3,7 +3,7 @@ module Network.BitTorrent.DHT.TestData | |||
3 | , testTorrents | 3 | , testTorrents |
4 | ) where | 4 | ) where |
5 | 5 | ||
6 | import Data.Torrent.InfoHash | 6 | import Data.Torrent |
7 | 7 | ||
8 | data TestEntry = TestEntry | 8 | data TestEntry = TestEntry |
9 | { entryName :: String | 9 | { entryName :: String |
diff --git a/tests/Network/BitTorrent/DHT/TokenSpec.hs b/tests/Network/BitTorrent/DHT/TokenSpec.hs index 6353a24c..a45d2212 100644 --- a/tests/Network/BitTorrent/DHT/TokenSpec.hs +++ b/tests/Network/BitTorrent/DHT/TokenSpec.hs | |||
@@ -7,7 +7,7 @@ import Data.String | |||
7 | import Test.Hspec | 7 | import Test.Hspec |
8 | import Test.QuickCheck | 8 | import Test.QuickCheck |
9 | 9 | ||
10 | import Network.BitTorrent.Core | 10 | import Network.BitTorrent.Address |
11 | import Network.BitTorrent.CoreSpec () | 11 | import Network.BitTorrent.CoreSpec () |
12 | import Network.BitTorrent.DHT.Token as T | 12 | import Network.BitTorrent.DHT.Token as T |
13 | 13 | ||