Commit b90e5fb7 authored by Brian Tiger Chow's avatar Brian Tiger Chow Committed by Jeromy

test(bitswap) Close (but skip for now)

License: MIT
Signed-off-by: default avatarBrian Tiger Chow <brian@perfmode.com>
parent 58b9745f
......@@ -18,6 +18,21 @@ import (
mock "github.com/jbenet/go-ipfs/routing/mock"
)
func TestClose(t *testing.T) {
// TODO
t.Skip("TODO Bitswap's Close implementation is a WIP")
vnet := tn.VirtualNetwork()
rout := mock.VirtualRoutingServer()
sesgen := NewSessionGenerator(vnet, rout)
bgen := NewBlockGenerator()
block := bgen.Next()
bitswap := sesgen.Next()
bitswap.exchange.Close()
bitswap.exchange.GetBlock(context.Background(), block.Key())
}
func TestGetBlockTimeout(t *testing.T) {
net := tn.VirtualNetwork()
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment