Merge pull request #2556 from gaurav1086/oomparser_fix_data_race

oomparser_test: fix data race
This commit is contained in:
David Ashpole 2020-05-26 13:33:52 -07:00 committed by GitHub
commit 92f31e79a7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -450,6 +450,7 @@ func TestStreamOOMs(t *testing.T) {
}
for _, pair := range testPairs {
pair := pair
go func() {
for _, x := range pair.in {
writeAll(x.msgs, x.time)