From a44b1a6f9befb95ce9a14e3f7c63db05679842f7 Mon Sep 17 00:00:00 2001 From: Ian Shim <100327837+ian-shim@users.noreply.github.com> Date: Thu, 31 Oct 2024 14:46:12 -0700 Subject: [PATCH] fix: make integration test use two quorums (#855) --- inabox/tests/integration_test.go | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/inabox/tests/integration_test.go b/inabox/tests/integration_test.go index d7dd44a7c6..f257d3e2b8 100644 --- a/inabox/tests/integration_test.go +++ b/inabox/tests/integration_test.go @@ -141,6 +141,15 @@ var _ = Describe("Inabox Integration", func() { [32]byte(reply1.GetInfo().GetBlobVerificationProof().GetBatchMetadata().GetBatchHeader().GetBatchRoot()), 1, // retrieve blob 1 from quorum 1 ) + Expect(err).To(BeNil()) + + _, err = retrievalClient.RetrieveBlob(ctx, + [32]byte(reply1.GetInfo().GetBlobVerificationProof().GetBatchMetadata().GetBatchHeaderHash()), + reply1.GetInfo().GetBlobVerificationProof().GetBlobIndex(), + uint(reply1.GetInfo().GetBlobVerificationProof().GetBatchMetadata().GetBatchHeader().GetReferenceBlockNumber()), + [32]byte(reply1.GetInfo().GetBlobVerificationProof().GetBatchMetadata().GetBatchHeader().GetBatchRoot()), + 2, // retrieve blob 1 from quorum 2 + ) Expect(err).NotTo(BeNil()) retrieved, err = retrievalClient.RetrieveBlob(ctx, @@ -160,6 +169,14 @@ var _ = Describe("Inabox Integration", func() { [32]byte(reply2.GetInfo().GetBlobVerificationProof().GetBatchMetadata().GetBatchHeader().GetBatchRoot()), 1, // retrieve from quorum 1 ) + Expect(err).To(BeNil()) + _, err = retrievalClient.RetrieveBlob(ctx, + [32]byte(reply2.GetInfo().GetBlobVerificationProof().GetBatchMetadata().GetBatchHeaderHash()), + reply2.GetInfo().GetBlobVerificationProof().GetBlobIndex(), + uint(reply2.GetInfo().GetBlobVerificationProof().GetBatchMetadata().GetBatchHeader().GetReferenceBlockNumber()), + [32]byte(reply2.GetInfo().GetBlobVerificationProof().GetBatchMetadata().GetBatchHeader().GetBatchRoot()), + 2, // retrieve from quorum 2 + ) Expect(err).NotTo(BeNil()) }) })