Skip to content

Commit 3f479a2

Browse files
committed
avoid breaking existing test by using different test repo
1 parent 8a7f930 commit 3f479a2

File tree

3 files changed

+7
-7
lines changed

3 files changed

+7
-7
lines changed

models/fixtures/action_run.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -77,8 +77,8 @@
7777
-
7878
id: 802
7979
title: "workflow run list"
80-
repo_id: 4
81-
owner_id: 1
80+
repo_id: 5
81+
owner_id: 3
8282
workflow_id: "test.yaml"
8383
index: 191
8484
trigger_user_id: 1

models/fixtures/action_run_job.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -72,8 +72,8 @@
7272
-
7373
id: 203
7474
run_id: 802
75-
repo_id: 4
76-
owner_id: 1
75+
repo_id: 5
76+
owner_id: 3
7777
commit_sha: c2d72f548424103f01ee1dc02889c1e2bff816b0
7878
is_fork_pull_request: 0
7979
name: job2

tests/integration/workflow_run_api_check_test.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,15 +17,15 @@ import (
1717

1818
func TestAPIWorkflowRunRepoApi(t *testing.T) {
1919
defer tests.PrepareTestEnv(t)()
20-
userUsername := "user5"
20+
userUsername := "user2"
2121
token := getUserToken(t, userUsername, auth_model.AccessTokenScopeWriteRepository)
2222

23-
req := NewRequest(t, "GET", "/api/v1/repos/user5/repo4/actions/runs").AddTokenAuth(token)
23+
req := NewRequest(t, "GET", "/api/v1/repos/org3/repo5/actions/runs").AddTokenAuth(token)
2424
runnerListResp := MakeRequest(t, req, http.StatusOK)
2525
runnerList := api.ActionWorkflowRunsResponse{}
2626
DecodeJSON(t, runnerListResp, &runnerList)
2727

28-
assert.Len(t, runnerList.Entries, 5)
28+
assert.Len(t, runnerList.Entries, 1)
2929

3030
foundRun := false
3131

0 commit comments

Comments
 (0)