From e3c9d0ba6ef54f524b91f10d63d897a31e1c7794 Mon Sep 17 00:00:00 2001 From: Michael Yocca Date: Tue, 23 Aug 2022 21:52:26 -0700 Subject: [PATCH] remove test case with temp inability to test --- run_integration_test.go | 18 ++---------------- 1 file changed, 2 insertions(+), 16 deletions(-) diff --git a/run_integration_test.go b/run_integration_test.go index 73f622b1c..e70f7526f 100644 --- a/run_integration_test.go +++ b/run_integration_test.go @@ -109,9 +109,7 @@ func TestRunsListQueryParams(t *testing.T) { workspaceTest, _ := createWorkspace(t, client, orgTest) createPlannedRun(t, client, workspaceTest) - pendingRun, _ := createRun(t, client, workspaceTest) - - currentUser, _ := client.Users.ReadCurrent(ctx) + createRun(t, client, workspaceTest) testCases := []testCase{ { @@ -140,19 +138,7 @@ func TestRunsListQueryParams(t *testing.T) { }, }, { - description: "with name parameter", - options: &RunListOptions{User: currentUser.Username, Include: []RunIncludeOpt{RunWorkspace}}, - assertion: func(tc testCase, rl *RunList, err error) { - found := []string{} - for _, r := range rl.Items { - found = append(found, r.ID) - } - assert.Equal(t, 2, len(rl.Items)) - assert.Contains(t, found, pendingRun.ID) - }, - }, - { - description: "with name & commit parameter", + description: "with mismatch user & commit parameter", options: &RunListOptions{User: randomString(t), Commit: randomString(t), Include: []RunIncludeOpt{RunWorkspace}}, assertion: func(tc testCase, rl *RunList, err error) { require.NoError(t, err)