Skip to content

Commit

Permalink
Fix issue with provider server unit tests
Browse files Browse the repository at this point in the history
Signed-off-by: nb-ohad <[email protected]>
  • Loading branch information
nb-ohad committed Nov 22, 2023
1 parent a9b7c63 commit 0e68149
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion controllers/storagecluster/provider_server_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -179,7 +179,7 @@ func TestOcsProviderServerEnsureCreated(t *testing.T) {
ObjectMeta: metav1.ObjectMeta{Name: ocsProviderServerName},
}
deployment.Status.AvailableReplicas = 1
err = r.Update(context.TODO(), deployment)
err = r.Status().Update(context.TODO(), deployment)
assert.NoError(t, err)

// call ensureCreated again after filling the status of deployment, It will pass now
Expand Down

0 comments on commit 0e68149

Please sign in to comment.