Skip to content

Commit 91bdfbd

Browse files
committed
avoid deperecated code
1 parent 57f6136 commit 91bdfbd

File tree

1 file changed

+10
-10
lines changed

1 file changed

+10
-10
lines changed

Diff for: controllers/githubactionrunner_controller_test.go

+10-10
Original file line numberDiff line numberDiff line change
@@ -143,17 +143,17 @@ func TestGithubactionRunnerController(t *testing.T) {
143143

144144
// then scale down
145145
mockResult = append(mockResult, &github.Runner{
146-
ID: pointer.Int64Ptr(1),
147-
Name: pointer.StringPtr(podList.Items[0].Name),
148-
OS: pointer.StringPtr("Linux"),
149-
Status: pointer.StringPtr("online"),
150-
Busy: pointer.BoolPtr(false),
146+
ID: pointer.Int64(1),
147+
Name: pointer.String(podList.Items[0].Name),
148+
OS: pointer.String("Linux"),
149+
Status: pointer.String("online"),
150+
Busy: pointer.Bool(false),
151151
}, &github.Runner{
152-
ID: pointer.Int64Ptr(2),
153-
Name: pointer.StringPtr(podList.Items[1].Name),
154-
OS: pointer.StringPtr("Linux"),
155-
Status: pointer.StringPtr("online"),
156-
Busy: pointer.BoolPtr(false),
152+
ID: pointer.Int64(2),
153+
Name: pointer.String(podList.Items[1].Name),
154+
OS: pointer.String("Linux"),
155+
Status: pointer.String("online"),
156+
Busy: pointer.Bool(false),
157157
})
158158
mockAPI.On("GetRunners", org, repo, token).Return(mockResult, nil).Once()
159159

0 commit comments

Comments
 (0)