test: skip slow state test without flag

This commit is contained in:
Michael Schurter
2019-03-21 07:17:02 -07:00
parent 91d36f9f6a
commit c43515cd14

View File

@@ -77,6 +77,10 @@ func getPID(client *api.Client, alloc *api.Allocation, path string) (int, error)
// TestClientState_Kill force kills Nomad agents and restarts them in a tight
// loop to assert Nomad is crash safe.
func (tc *ClientStateTC) TestClientState_Kill(f *framework.F) {
if os.Getenv("NOMAD_TEST_STATE") == "" {
f.T().Skip("Skipping very slow state corruption test unless NOMAD_TEST_STATE=1")
}
t := f.T()
t.Parallel()