mirror of
https://github.com/coder/coder.git
synced 2025-07-09 11:45:56 +00:00
chore: fix race check for AgentMetadata test (#7141)
This commit is contained in:
@ -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)
|
||||
}
|
||||
|
Reference in New Issue
Block a user