github.com/ferranbt/nomad@v0.9.3-0.20190607002617-85c449b7667c/testutil/slow.go (about) 1 package testutil 2 3 import ( 4 "os" 5 6 testing "github.com/mitchellh/go-testing-interface" 7 ) 8 9 // SkipSlow skips a slow test unless the NOMAD_SLOW_TEST environment variable 10 // is set. 11 func SkipSlow(t testing.T) { 12 if os.Getenv("NOMAD_SLOW_TEST") == "" { 13 t.Skip("Skipping slow test. Set NOMAD_SLOW_TEST=1 to run.") 14 } 15 }