@cryptotaxi247 / kubo / commits / 64191c1b3

bitswap: removed dubious error check test.

Juan Batiz-Benet committed Jan 29, 2015 at 00:07 UTC 64191c1b31346fd9e23c583b4afa556f87077fdd
1 file changed -17
exchange/bitswap/bitswap_test.go
-17
@@ -36,23 +36,6 @@ func TestClose(t *testing.T) {
36 bitswap.Exchange.GetBlock(context.Background(), block.Key())
37 }
38
39 -func TestGetBlockTimeout(t *testing.T) {
40 -
41 - net := tn.VirtualNetwork(mockrouting.NewServer(), delay.Fixed(kNetworkDelay))
42 - g := NewTestSessionGenerator(net)
43 - defer g.Close()
44 -
45 - self := g.Next()
46 -
47 - ctx, _ := context.WithTimeout(context.Background(), time.Nanosecond)
48 - block := blocks.NewBlock([]byte("block"))
49 - _, err := self.Exchange.GetBlock(ctx, block.Key())
50 -
51 - if err != context.DeadlineExceeded {
52 - t.Fatal("Expected DeadlineExceeded error")
53 - }
54 -}
55 -
39 func TestProviderForKeyButNetworkCannotFind(t *testing.T) { // TODO revisit this
40
41 rs := mockrouting.NewServer()