mirror of
https://github.com/coder/coder.git
synced 2026-06-02 20:48:20 +00:00
chore: fix race check for AgentMetadata test (#7141)
This commit is contained in:
+2
-1
@@ -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