Skip to content

Commit b4eaef5

Browse files
authored
Merge pull request #128 from scribd/maksimt/DEVPLAT-1850/fix-tests
[DEVPLAT-1850] Fix test for the SQS subscriber
2 parents a016bc3 + 9a16c43 commit b4eaef5

File tree

1 file changed

+0
-6
lines changed

1 file changed

+0
-6
lines changed

pkg/pubsub/sqs/subscriber_test.go

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,6 @@ func (m *mockSQSClient) ReceiveMessage(
3030
func Test_Subscriber_Subscribe(t *testing.T) {
3131
t.Run("all subscribers finished", func(t *testing.T) {
3232
var nHandlers int64 // atomic
33-
var executedTimes int64
3433

3534
c := make(chan int, 6)
3635

@@ -64,7 +63,6 @@ func Test_Subscriber_Subscribe(t *testing.T) {
6463

6564
atomic.AddInt64(&nHandlers, 1)
6665
defer atomic.AddInt64(&nHandlers, -1)
67-
atomic.AddInt64(&executedTimes, 1)
6866

6967
time.Sleep(time.Millisecond * 10)
7068
},
@@ -84,9 +82,5 @@ func Test_Subscriber_Subscribe(t *testing.T) {
8482
if got := atomic.LoadInt64(&nHandlers); got != 0 {
8583
t.Errorf("expected 0, got %d", got)
8684
}
87-
88-
if got := atomic.LoadInt64(&executedTimes); got != 6 {
89-
t.Errorf("expected 6, got %d", got)
90-
}
9185
})
9286
}

0 commit comments

Comments
 (0)