@cryptotaxi247 / kubo / commits / 0a6bdbaa6

pubsub: fix race in test

This commit was moved from ipfs/interface-go-ipfs-core@a84bfa1f4055bb15e3727841df03c3f306ed5cfc This commit was moved from ipfs/boxo@bc7e36143ffe315dc853eecd39d4be5e9b1ab425

Łukasz Magiera committed Feb 12, 2019 at 13:30 UTC 0a6bdbaa6cfa478a88b43a724695698e2e53414c
1 file changed +1 -1
core/coreiface/tests/pubsub.go
+1 -1
@@ -38,7 +38,7 @@ func (tp *provider) TestBasicPubSub(t *testing.T) {
38 tick := time.Tick(100 * time.Millisecond)
39
40 for {
41 - err = apis[1].PubSub().Publish(ctx, "testch", []byte("hello world"))
41 + err := apis[1].PubSub().Publish(ctx, "testch", []byte("hello world"))
42 if err != nil {
43 t.Fatal(err)
44 }