From b88050a4c445c5254dbe34b5035698d4921b27b9 Mon Sep 17 00:00:00 2001 From: Michael Li Date: Thu, 27 Apr 2023 13:35:52 -0400 Subject: [PATCH] test(e2e): Fix assertion statement (#3190) --- testing/internal/e2e/tests/aws/worker_test.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/testing/internal/e2e/tests/aws/worker_test.go b/testing/internal/e2e/tests/aws/worker_test.go index a13224b58a..892d079011 100644 --- a/testing/internal/e2e/tests/aws/worker_test.go +++ b/testing/internal/e2e/tests/aws/worker_test.go @@ -11,6 +11,7 @@ import ( "github.com/hashicorp/boundary/testing/internal/e2e" "github.com/hashicorp/boundary/testing/internal/e2e/boundary" + "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" ) @@ -60,7 +61,7 @@ func TestCliWorker(t *testing.T) { ), ) require.Error(t, output.Err, string(output.Stderr)) - require.Equal(t, output.ExitCode, 255) + assert.Equal(t, 255, output.ExitCode) require.Contains(t, string(output.Stderr), "timed out") t.Logf("Successfully detected connection failure")