Skip to content

Commit 7376ab7

Browse files
test(batcher): drop redundant post-wait lock
Signed-off-by: Asish Kumar <officialasishkumar@gmail.com>
1 parent 929d190 commit 7376ab7

1 file changed

Lines changed: 0 additions & 2 deletions

File tree

service/worker/batcher/workflow_v2_test.go

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -203,10 +203,8 @@ func TestBatchWorkflowV2_TuneSignal(t *testing.T) {
203203
close(firstActivityDone)
204204
activityWG.Wait()
205205

206-
mu.Lock()
207206
captured := make([]BatchParams, len(capturedParams))
208207
copy(captured, capturedParams)
209-
mu.Unlock()
210208

211209
require.Len(t, captured, 2, "activity must be invoked twice (cancelled then restarted)")
212210
// Second invocation must carry the updated RPS and Concurrency from the signal.

0 commit comments

Comments
 (0)