Skip to content

Commit

Permalink
Add debugging for intermittent failures on TestDdevRestoreSnapshot (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
rfay committed Oct 6, 2018
1 parent 1b0e46d commit ad4aa45
Showing 1 changed file with 13 additions and 1 deletion.
14 changes: 13 additions & 1 deletion pkg/ddevapp/ddevapp_test.go
Expand Up @@ -590,7 +590,19 @@ func TestDdevRestoreSnapshot(t *testing.T) {
testcommon.EnsureLocalHTTPContent(t, app.GetHTTPURL(), "d7 tester test 1 has 1 node")
err = app.RestoreSnapshot("d7testerTest2")
assert.NoError(err)
testcommon.EnsureLocalHTTPContent(t, app.GetHTTPURL(), "d7 tester test 2 has 2 nodes")
//testcommon.EnsureLocalHTTPContent(t, app.GetHTTPURL(), "d7 tester test 2 has 2 nodes")

body, resp, err := testcommon.GetLocalHTTPResponse(t, app.GetHTTPURL())
assert.NoError(err, "GetLocalHTTPResponse returned err on rawurl %s: %v", app.GetHTTPURL(), err)
assert.Contains(body, "d7 tester test 2 has 2 nodes")
if err != nil {
t.Logf("resp after timeout: %v", resp)
stdout := testcommon.CaptureUserOut()
err = app.Logs("web", false, false, "")
assert.NoError(err)
out := stdout()
t.Logf("web container logs after timeout: %s", out)
}

err = app.Down(true, false)
assert.NoError(err)
Expand Down

0 comments on commit ad4aa45

Please sign in to comment.