diff --git a/testutil/ci.go b/testutil/ci.go index d11d8a2224..51166d4a8a 100644 --- a/testutil/ci.go +++ b/testutil/ci.go @@ -12,5 +12,6 @@ func InCI() bool { func InRaceMode() bool { fl := flag.Lookup("race") - return fl != nil && fl.Value.String() == "true" + //nolint:forcetypeassert + return fl != nil && fl.Value.(flag.Getter).Get().(bool) }