swarm/network/stream/: fix linter errors

This commit is contained in:
Fabio Barone 2019-03-06 12:24:37 -05:00
parent 1aff836004
commit 70b4c8b584

View file

@ -1340,7 +1340,7 @@ func TestGetSubscriptionsRPC(t *testing.T) {
log.Debug("All node streams counted", "realCount", realCount) log.Debug("All node streams counted", "realCount", realCount)
} }
emc := expectedMsgCount.count() emc := expectedMsgCount.count()
// after a subscription request, internally a live AND a history stream will be subscirbed, // after a subscription request, internally a live AND a history stream will be subscribed,
// thus the real count should be half of the actual request subscriptions sent // thus the real count should be half of the actual request subscriptions sent
if realCount/2 != emc { if realCount/2 != emc {
return fmt.Errorf("Real subscriptions and expected amount don't match; real: %d, expected: %d", realCount/2, emc) return fmt.Errorf("Real subscriptions and expected amount don't match; real: %d, expected: %d", realCount/2, emc)