mirror of https://github.com/coder/coder.git
chore: fix race check for AgentMetadata test (#7141)
This commit is contained in:
parent
0e50afe4cf
commit
f36a4a0b07
|
@ -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)
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue