make SandboxEventDump a deferred function to avoid being skipped by t.Fatal
@@ -206,9 +206,8 @@ func (f *Framework) RunWithSandbox(name string, t *testing.T, testFunc func(*tes
defer sandbox.Destroy()
}
+ defer sandbox.DumpSandboxInfo(t)
testFunc(t, sandbox)
-
- sandbox.DumpSandboxInfo(t)
})
}
