diff --git a/bitswap/notifications/notifications_test.go b/bitswap/notifications/notifications_test.go
index <HASH>..<HASH> 100644
--- a/bitswap/notifications/notifications_test.go
+++ b/bitswap/notifications/notifications_test.go
@@ -18,9 +18,13 @@ func TestPublishSubscribe(t *testing.T) {
 	ch := n.Subscribe(context.Background(), blockSent.Key())
 
 	n.Publish(blockSent)
-	blockRecvd := <-ch
+	blockRecvd, ok := <-ch
+	if !ok {
+		t.Fail()
+	}
 
 	assertBlocksEqual(t, blockRecvd, blockSent)
+
 }
 
 func TestCarryOnWhenDeadlineExpires(t *testing.T) {
test(bitswap:notifications) check if chan is open