Skip to content

Commit

Permalink
Removed un-needed counter
Browse files Browse the repository at this point in the history
Added a counter while writing test to make sure that there was
at least an iteration in the loop but forgot to remove it.

Signed-off-by: Ivan Kozlovic <ivan@synadia.com>
  • Loading branch information
kozlovic committed Oct 18, 2018
1 parent 3e04c54 commit 177e97d
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions stan_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -2501,12 +2501,10 @@ func TestRaceOnSubscribeAndConnClose(t *testing.T) {
wg.Add(1)
go func() {
defer wg.Done()
i := 1
for {
if _, err := sc.Subscribe("foo", cb); err != nil {
return
}
i++
}
}()
// It's not a mistake.. not millisecond, just nano.
Expand Down

0 comments on commit 177e97d

Please sign in to comment.