From fa737f6983e01ac6bd441bd73c39e42f0635e6f9 Mon Sep 17 00:00:00 2001 From: Joshua Humphries <2035234+jhump@users.noreply.github.com> Date: Thu, 2 Mar 2023 13:44:34 -0500 Subject: [PATCH] Sleep not necessary: race detector consistently detects race without it (#104) --- compiler_test.go | 5 ----- 1 file changed, 5 deletions(-) diff --git a/compiler_test.go b/compiler_test.go index eb13dd99..2c6638bf 100644 --- a/compiler_test.go +++ b/compiler_test.go @@ -21,7 +21,6 @@ import ( "os" "strings" "testing" - "time" "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" @@ -370,10 +369,6 @@ func TestDataRace(t *testing.T) { return err }) grp.Go(func() error { - // We need to start this *after* the one above, but we can't - // use any sychronizing event or that would not be a race. - // So we assume a one second delay is sufficient. - time.Sleep(time.Second) _, err := compiler2.Compile(ctx, "desc_test_complex.proto") return err })