File tree Expand file tree Collapse file tree 1 file changed +0
-6
lines changed Expand file tree Collapse file tree 1 file changed +0
-6
lines changed Original file line number Diff line number Diff line change @@ -30,7 +30,6 @@ func (m *mockSQSClient) ReceiveMessage(
30
30
func Test_Subscriber_Subscribe (t * testing.T ) {
31
31
t .Run ("all subscribers finished" , func (t * testing.T ) {
32
32
var nHandlers int64 // atomic
33
- var executedTimes int64
34
33
35
34
c := make (chan int , 6 )
36
35
@@ -64,7 +63,6 @@ func Test_Subscriber_Subscribe(t *testing.T) {
64
63
65
64
atomic .AddInt64 (& nHandlers , 1 )
66
65
defer atomic .AddInt64 (& nHandlers , - 1 )
67
- atomic .AddInt64 (& executedTimes , 1 )
68
66
69
67
time .Sleep (time .Millisecond * 10 )
70
68
},
@@ -84,9 +82,5 @@ func Test_Subscriber_Subscribe(t *testing.T) {
84
82
if got := atomic .LoadInt64 (& nHandlers ); got != 0 {
85
83
t .Errorf ("expected 0, got %d" , got )
86
84
}
87
-
88
- if got := atomic .LoadInt64 (& executedTimes ); got != 6 {
89
- t .Errorf ("expected 6, got %d" , got )
90
- }
91
85
})
92
86
}
You can’t perform that action at this time.
0 commit comments