Browse Source

test: mark helpers

pull/669/head
Steven Allen 5 years ago
parent
commit
3a41aa03ac
  1. 3
      p2p/host/basic/basic_host_test.go

3
p2p/host/basic/basic_host_test.go

@ -136,6 +136,8 @@ func TestHostAddrsFactory(t *testing.T) {
}
func getHostPair(ctx context.Context, t *testing.T) (host.Host, host.Host) {
t.Helper()
h1 := New(swarmt.GenSwarm(t, ctx))
h2 := New(swarmt.GenSwarm(t, ctx))
@ -148,6 +150,7 @@ func getHostPair(ctx context.Context, t *testing.T) (host.Host, host.Host) {
}
func assertWait(t *testing.T, c chan protocol.ID, exp protocol.ID) {
t.Helper()
select {
case proto := <-c:
if proto != exp {

Loading…
Cancel
Save