diff --git a/waku/v2/protocol/relay/waku_relay_test.go b/waku/v2/protocol/relay/waku_relay_test.go index 44511121b..e7a9db47c 100644 --- a/waku/v2/protocol/relay/waku_relay_test.go +++ b/waku/v2/protocol/relay/waku_relay_test.go @@ -81,7 +81,9 @@ func createRelayNode(t *testing.T) (host.Host, *WakuRelay) { bcaster := NewBroadcaster(10) relay := NewWakuRelay(bcaster, 0, timesource.NewDefaultClock(), prometheus.DefaultRegisterer, utils.Logger()) relay.SetHost(host) - bcaster.Start(context.Background()) + err = bcaster.Start(context.Background()) + require.NoError(t, err) + return host, relay }