Skip to content

Commit 0a90b77

Browse files
Fix datarace in forwarder_test (#3767)
1 parent 3948854 commit 0a90b77

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

service/matching/forwarder_test.go

+1
Original file line numberDiff line numberDiff line change
@@ -278,6 +278,7 @@ func (t *ForwarderTestSuite) TestMaxOutstandingConcurrency() {
278278
for _, tc := range testCases {
279279
adds = 0
280280
polls = 0
281+
tc := tc
281282
t.Run(tc.name, func() {
282283
for i := 0; i < concurrency; i++ {
283284
wg.Add(1)

0 commit comments

Comments
 (0)