From e60e1708705a3bb8d2dca4561a1b63d521b746aa Mon Sep 17 00:00:00 2001 From: Hector Sanjuan Date: Tue, 3 Apr 2018 15:00:12 +0200 Subject: [PATCH] Extract: blocks/blocksutil to go-ipfs-blocksutil License: MIT Signed-off-by: Hector Sanjuan --- bitswap_test.go | 2 +- notifications/notifications_test.go | 2 +- session_test.go | 3 +-- 3 files changed, 3 insertions(+), 4 deletions(-) diff --git a/bitswap_test.go b/bitswap_test.go index 1cc8b2d..e3ddd4f 100644 --- a/bitswap_test.go +++ b/bitswap_test.go @@ -8,7 +8,6 @@ import ( "testing" "time" - blocksutil "github.com/ipfs/go-ipfs/blocks/blocksutil" decision "github.com/ipfs/go-ipfs/exchange/bitswap/decision" tn "github.com/ipfs/go-ipfs/exchange/bitswap/testnet" @@ -21,6 +20,7 @@ import ( cid "gx/ipfs/QmcZfnkapfECQGcLZaf9B79NRg7cRa9EnZh4LSbkCzwNvY/go-cid" blocks "gx/ipfs/Qmej7nf81hi2x2tvjRBF3mcp74sQyuDH4VMYDGd1YtXjb2/go-block-format" detectrace "gx/ipfs/Qmf7HqcW7LtCi1W8y2bdx2eJpze74jkbKqpByxgXikdbLF/go-detect-race" + blocksutil "gx/ipfs/Qmf951DP11mCoctpyF3ZppPZdo2oAxuNi2vnkVDgHJ8Fqk/go-ipfs-blocksutil" ) // FIXME the tests are really sensitive to the network delay. fix them to work diff --git a/notifications/notifications_test.go b/notifications/notifications_test.go index a70a075..5c15975 100644 --- a/notifications/notifications_test.go +++ b/notifications/notifications_test.go @@ -6,9 +6,9 @@ import ( "testing" "time" - blocksutil "github.com/ipfs/go-ipfs/blocks/blocksutil" cid "gx/ipfs/QmcZfnkapfECQGcLZaf9B79NRg7cRa9EnZh4LSbkCzwNvY/go-cid" blocks "gx/ipfs/Qmej7nf81hi2x2tvjRBF3mcp74sQyuDH4VMYDGd1YtXjb2/go-block-format" + blocksutil "gx/ipfs/Qmf951DP11mCoctpyF3ZppPZdo2oAxuNi2vnkVDgHJ8Fqk/go-ipfs-blocksutil" ) func TestDuplicates(t *testing.T) { diff --git a/session_test.go b/session_test.go index 75e4da0..cfcf002 100644 --- a/session_test.go +++ b/session_test.go @@ -6,11 +6,10 @@ import ( "testing" "time" - blocksutil "github.com/ipfs/go-ipfs/blocks/blocksutil" - tu "gx/ipfs/QmVvkK7s5imCiq3JVbL3pGfnhcCnf3LrFJPF4GE2sAoGZf/go-testutil" cid "gx/ipfs/QmcZfnkapfECQGcLZaf9B79NRg7cRa9EnZh4LSbkCzwNvY/go-cid" blocks "gx/ipfs/Qmej7nf81hi2x2tvjRBF3mcp74sQyuDH4VMYDGd1YtXjb2/go-block-format" + blocksutil "gx/ipfs/Qmf951DP11mCoctpyF3ZppPZdo2oAxuNi2vnkVDgHJ8Fqk/go-ipfs-blocksutil" ) func TestBasicSessions(t *testing.T) { -- GitLab