From 1a99a0f771fddec1aef272e6bd93960224902dea Mon Sep 17 00:00:00 2001 From: Lang Martin Date: Mon, 20 May 2019 13:27:28 -0400 Subject: [PATCH] e2e utils error format arg match --- e2e/e2eutil/utils.go | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/e2e/e2eutil/utils.go b/e2e/e2eutil/utils.go index c35e52415..7c2212212 100644 --- a/e2e/e2eutil/utils.go +++ b/e2e/e2eutil/utils.go @@ -121,7 +121,12 @@ func WaitForDeployment(t *testing.T, nomadClient *api.Client, deployID string, s if deploy.Status == status && deploy.StatusDescription == statusDesc { return true, nil } - return false, fmt.Errorf("expected status %s \"%s\", but got: %s \"%s\"", deploy.Status, deploy.StatusDescription) + return false, fmt.Errorf("expected status %s \"%s\", but got: %s \"%s\"", + deploy.Status, + deploy.StatusDescription, + status, + statusDesc, + ) }, func(err error) { t.Fatalf("failed to wait on alloc: %v", err)