From c43515cd14c55d04bb3631944ec1b8cf940caab0 Mon Sep 17 00:00:00 2001 From: Michael Schurter Date: Thu, 21 Mar 2019 07:17:02 -0700 Subject: [PATCH] test: skip slow state test without flag --- e2e/clientstate/clientstate.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/e2e/clientstate/clientstate.go b/e2e/clientstate/clientstate.go index 1bb23b1a7..db78b2086 100644 --- a/e2e/clientstate/clientstate.go +++ b/e2e/clientstate/clientstate.go @@ -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()