Skip to content

Commit

Permalink
Fix test
Browse files Browse the repository at this point in the history
Signed-off-by: Isha Girdhar <[email protected]>
  • Loading branch information
IshaGirdhar committed Sep 25, 2023
1 parent 69162b7 commit 2b98982
Show file tree
Hide file tree
Showing 2 changed files with 28 additions and 27 deletions.
50 changes: 25 additions & 25 deletions opensearch-operator/api/v1/zz_generated.deepcopy.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 3 additions & 2 deletions opensearch-operator/pkg/reconcilers/ismpolicy_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -316,7 +316,7 @@ var _ = Describe("ism policy reconciler", func() {
recorder = record.NewFakeRecorder(1)
policyRequest := requests.ISMPolicy{
DefaultState: "policy",
Description: "policy-test",
Description: "test-policy",
}
transport.RegisterResponder(
http.MethodGet,
Expand All @@ -330,6 +330,7 @@ var _ = Describe("ism policy reconciler", func() {
Policy: policyRequest,
SequenceNumber: seqno,
PrimaryTerm: seqno,
PolicyID: "test-policy",
}).Once(failMessage),
)
transport.RegisterResponder(
Expand All @@ -350,7 +351,7 @@ var _ = Describe("ism policy reconciler", func() {
_, err := reconciler.Reconcile()
Expect(err).ToNot(HaveOccurred())
// Confirm all responders have been called
Expect(transport.GetTotalCallCount()).To(Equal(transport.NumResponders() + 1 + extraContextCalls))
Expect(transport.GetTotalCallCount()).To(Equal(transport.NumResponders() + extraContextCalls))
}()
var events []string
for msg := range recorder.Events {
Expand Down

0 comments on commit 2b98982

Please sign in to comment.