chore: fix race check for AgentMetadata test (#7141)

This commit is contained in:
Ammar Bandukwala
2023-04-14 12:02:44 -05:00
committed by GitHub
parent 0e50afe4cf
commit f36a4a0b07

View File

@ -12,5 +12,6 @@ func InCI() bool {
func InRaceMode() bool { func InRaceMode() bool {
fl := flag.Lookup("race") fl := flag.Lookup("race")
return fl != nil && fl.Value.String() == "true" //nolint:forcetypeassert
return fl != nil && fl.Value.(flag.Getter).Get().(bool)
} }