We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent e39b066 commit c6d6d18Copy full SHA for c6d6d18
1 file changed
app/jobs/heartbeatjob/heartbeatjob_test.go
@@ -150,13 +150,13 @@ func TestShutdown_StopsJob(t *testing.T) {
150
job.Register(ctx, svc)
151
152
time.Sleep(10 * time.Millisecond)
153
- countBeforeShutdown := callCount.Load()
154
job.Shutdown()
+ countAtShutdown := callCount.Load()
155
156
157
- countAfterShutdown := callCount.Load()
+ countAfterWait := callCount.Load()
158
159
- assert.Equal(t, countBeforeShutdown, countAfterShutdown)
+ assert.Equal(t, countAtShutdown, countAfterWait)
160
}
161
162
// TestShutdown_WaitsForCompletion - Shutdown() waits for goroutine to finish
0 commit comments