Skip to content

Commit

Permalink
Remove prePageToken that does not exist in proto anymore
Browse files Browse the repository at this point in the history
  • Loading branch information
gkiko10 committed Nov 4, 2024
1 parent 77a7996 commit 9f8482d
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 7 deletions.
2 changes: 0 additions & 2 deletions service/jobs/ext_api.go
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,5 @@ func (a *JobsAPI) GetRun(ctx context.Context, request GetRunRequest) (*Run, erro
pageToken = nextRun.NextPageToken
}

run.NextPageToken = ""
run.PrevPageToken = ""
return run, nil
}
5 changes: 0 additions & 5 deletions service/jobs/ext_api_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,6 @@ func TestGetRun(t *testing.T) {
JobClusterKey: "cluster2",
},
},
PrevPageToken: "token1-reverse",
},
},
{
Expand Down Expand Up @@ -167,7 +166,6 @@ func TestGetRun(t *testing.T) {
assert.Equal(t, 4, len(run.Tasks))
assert.Empty(t, run.Iterations)
assert.Empty(t, run.NextPageToken)
assert.Empty(t, run.PrevPageToken)
expected := []RunTask{
{RunId: 123, ForceSendFields: []string{"RunId", "TaskKey"}},
{RunId: 1234, ForceSendFields: []string{"RunId", "TaskKey"}},
Expand Down Expand Up @@ -226,7 +224,6 @@ func TestGetRun(t *testing.T) {
JobClusterKey: "cluster2",
},
},
PrevPageToken: "token1-reverse",
},
},
{
Expand Down Expand Up @@ -318,7 +315,6 @@ func TestGetRun(t *testing.T) {
RunId: 999,
},
},
PrevPageToken: "token1-reverse",
},
},
{
Expand Down Expand Up @@ -363,7 +359,6 @@ func TestGetRun(t *testing.T) {
assert.Equal(t, 4, len(run.Iterations))
assert.Equal(t, 1, len(run.Tasks))
assert.Empty(t, run.NextPageToken)
assert.Empty(t, run.PrevPageToken)
expected := []RunTask{
{RunId: 123, ForceSendFields: []string{"RunId", "TaskKey"}},
{RunId: 1234, ForceSendFields: []string{"RunId", "TaskKey"}},
Expand Down

0 comments on commit 9f8482d

Please sign in to comment.