Skip to content

Commit

Permalink
Fixing linter errors for error return
Browse files Browse the repository at this point in the history
Signed-off-by: Aravind Ramalingam <[email protected]>
  • Loading branch information
pokearu committed May 17, 2022
1 parent eb72725 commit 65acac8
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions controllers/baseboardmanagement_controller_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,8 @@ func TestReconcileSetPowerSuccess(t *testing.T) {

objs := []runtime.Object{bm, authSecret}
scheme := runtime.NewScheme()
bmcv1alpha1.AddToScheme(scheme)
corev1.AddToScheme(scheme)
_ = bmcv1alpha1.AddToScheme(scheme)
_ = corev1.AddToScheme(scheme)

clientBuilder := fake.NewClientBuilder()
client := clientBuilder.WithScheme(scheme).WithRuntimeObjects(objs...).Build()
Expand Down Expand Up @@ -71,8 +71,8 @@ func TestReconcileDesiredPowerStateSuccess(t *testing.T) {

objs := []runtime.Object{bm, authSecret}
scheme := runtime.NewScheme()
bmcv1alpha1.AddToScheme(scheme)
corev1.AddToScheme(scheme)
_ = bmcv1alpha1.AddToScheme(scheme)
_ = corev1.AddToScheme(scheme)

clientBuilder := fake.NewClientBuilder()
client := clientBuilder.WithScheme(scheme).WithRuntimeObjects(objs...).Build()
Expand Down Expand Up @@ -107,8 +107,8 @@ func TestReconcileSecretReferenceError(t *testing.T) {
bm := getBaseboardManagement()

scheme := runtime.NewScheme()
bmcv1alpha1.AddToScheme(scheme)
corev1.AddToScheme(scheme)
_ = bmcv1alpha1.AddToScheme(scheme)
_ = corev1.AddToScheme(scheme)

tt := map[string]struct {
Secret *corev1.Secret
Expand Down Expand Up @@ -176,8 +176,8 @@ func TestReconcileConnectionError(t *testing.T) {

objs := []runtime.Object{bm, authSecret}
scheme := runtime.NewScheme()
bmcv1alpha1.AddToScheme(scheme)
corev1.AddToScheme(scheme)
_ = bmcv1alpha1.AddToScheme(scheme)
_ = corev1.AddToScheme(scheme)
clientBuilder := fake.NewClientBuilder()
client := clientBuilder.WithScheme(scheme).WithRuntimeObjects(objs...).Build()

Expand Down

0 comments on commit 65acac8

Please sign in to comment.