From 6c04d02f1f85610d3f20fa0ed66d806a96efde09 Mon Sep 17 00:00:00 2001 From: Ammar Bandukwala Date: Fri, 14 Apr 2023 16:41:23 +0000 Subject: [PATCH] chore: fix race check for AgentMetadata test --- testutil/ci.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/testutil/ci.go b/testutil/ci.go index d11d8a22241d6..51166d4a8a88e 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) }