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)