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
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 1 deletions

View File

@ -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)
}