github.com/hspak/nomad@v0.7.2-0.20180309000617-bc4ae22a39a5/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 }