mirror of
https://github.com/coder/coder.git
synced 2025-03-14 10:09:57 +00:00
* chore: skip timing-sensistive AgentMetadata test in the standard suite * Add test-timing target * fix windows? * Works on my Windows desktop? * Use tag system * fixup! Use tag system
21 lines
476 B
Go
21 lines
476 B
Go
package testutil
|
|
|
|
import (
|
|
"testing"
|
|
)
|
|
|
|
// We can't run timing-sensitive tests in CI because of the
|
|
// great variance in runner performance. Instead of not testing timing at all,
|
|
// we relegate it to humans manually running certain tests with the "-timing"
|
|
// flag from time to time.
|
|
//
|
|
// Eventually, we should run all timing tests in a self-hosted runner.
|
|
|
|
var timing bool
|
|
|
|
func SkipIfNotTiming(t *testing.T) {
|
|
if !timing {
|
|
t.Skip("skipping timing-sensitive test")
|
|
}
|
|
}
|