From 1d5fc5c4ed11ec50a2ce08712f1fd6eb7e108130 Mon Sep 17 00:00:00 2001 From: Gus Eggert Date: Mon, 22 Nov 2021 15:31:16 -0500 Subject: [PATCH] Version 0.5.0 --- pubsub_test.go | 11 +++++++++-- version.json | 2 +- 2 files changed, 10 insertions(+), 3 deletions(-) diff --git a/pubsub_test.go b/pubsub_test.go index 706f38b..c8fedb0 100644 --- a/pubsub_test.go +++ b/pubsub_test.go @@ -21,8 +21,14 @@ import ( func newNetHost(ctx context.Context, t *testing.T) host.Host { netw := swarmt.GenSwarm(t) - t.Cleanup(func() { netw.Close() }) - return bhost.NewBlankHost(netw) + bh := bhost.NewBlankHost(netw) + t.Cleanup(func() { + err := bh.Close() + if err != nil { + panic(err) + } + }) + return bh } func newNetHosts(ctx context.Context, t *testing.T, n int) []host.Host { @@ -33,6 +39,7 @@ func newNetHosts(ctx context.Context, t *testing.T, n int) []host.Host { out = append(out, h) } + time.Sleep(3 * time.Second) return out } diff --git a/version.json b/version.json index 372b6ea..fc15ae0 100644 --- a/version.json +++ b/version.json @@ -1,3 +1,3 @@ { - "version": "v0.4.0" + "version": "v0.5.0" }