Skip to content

Commit

Permalink
Enforce error checking in CI (#1417)
Browse files Browse the repository at this point in the history
* enforce err check
  • Loading branch information
spring1843 committed Feb 25, 2022
1 parent 2396c10 commit 40f002e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
1 change: 0 additions & 1 deletion .golangci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,6 @@ linters:
- unconvert
- unparam
disable:
- errcheck
- prealloc

linters-settings:
Expand Down
4 changes: 3 additions & 1 deletion pkg/test/expectations/expectations.go
Original file line number Diff line number Diff line change
Expand Up @@ -179,7 +179,9 @@ func ExpectProvisioned(ctx context.Context, c client.Client, selectionController
for _, pod := range pods {
wg.Add(1)
go func(pod *v1.Pod) {
selectionController.Reconcile(ctx, reconcile.Request{NamespacedName: client.ObjectKeyFromObject(pod)})
if _, err := selectionController.Reconcile(ctx, reconcile.Request{NamespacedName: client.ObjectKeyFromObject(pod)}); err != nil {
Expect(err).To(HaveOccurred()) // This is expected to sometimes happen
}
wg.Done()
}(pod)
}
Expand Down

0 comments on commit 40f002e

Please sign in to comment.