From f36a4a0b0792547299d3dc1da0efaf051f04e28c Mon Sep 17 00:00:00 2001 From: Ammar Bandukwala Date: Fri, 14 Apr 2023 12:02:44 -0500 Subject: [PATCH] chore: fix race check for AgentMetadata test (#7141) --- testutil/ci.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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) }