Commit bdabd79
committed
test: replace deprecated fake.NewSimpleClientset with fake.NewClientset
The pull-cloud-provider-openstack-check prow job runs golangci-lint
v2.3.1 with staticcheck enabled, which flags fake.NewSimpleClientset as
SA1019 (deprecated). TestFetchClusterUID, added earlier in this PR,
used the deprecated function. Swap it for fake.NewClientset; the
signature is identical (objects ...runtime.Object) and the unit tests
still pass.1 parent 56756ea commit bdabd79
1 file changed
Lines changed: 3 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1170 | 1170 | | |
1171 | 1171 | | |
1172 | 1172 | | |
1173 | | - | |
| 1173 | + | |
1174 | 1174 | | |
1175 | 1175 | | |
1176 | 1176 | | |
| |||
1184 | 1184 | | |
1185 | 1185 | | |
1186 | 1186 | | |
1187 | | - | |
| 1187 | + | |
1188 | 1188 | | |
1189 | 1189 | | |
1190 | 1190 | | |
| |||
1193 | 1193 | | |
1194 | 1194 | | |
1195 | 1195 | | |
1196 | | - | |
| 1196 | + | |
1197 | 1197 | | |
1198 | 1198 | | |
1199 | 1199 | | |
| |||
0 commit comments