From 98bcac59e1bcd7a1e380f6a88ea1835fd2ba7e2e Mon Sep 17 00:00:00 2001 From: Roy Crihfield Date: Thu, 18 Apr 2024 21:54:42 +0800 Subject: [PATCH] grammar nit --- integration/direct_proxy_integration_test.go | 10 +++++----- integration/integration_test.go | 10 +++++----- test/compose-server.yml | 2 +- 3 files changed, 11 insertions(+), 11 deletions(-) diff --git a/integration/direct_proxy_integration_test.go b/integration/direct_proxy_integration_test.go index 5b2b5df7..f3a9f278 100644 --- a/integration/direct_proxy_integration_test.go +++ b/integration/direct_proxy_integration_test.go @@ -22,13 +22,13 @@ var _ = Describe("Direct proxy integration test", Label("proxy"), func() { var contractErr error var txErr error - Describe("get Block", func() { + Describe("Get Block", func() { BeforeEach(func() { contract, contractErr = integration.DeployContract() Expect(contractErr).ToNot(HaveOccurred()) }) - It("get not existing block by number", func() { + It("gets not existing block by number", func() { blockNum := contract.BlockNumber + 100 gethBlock, err := gethClient.BlockByNumber(ctx, big.NewInt(blockNum)) @@ -40,7 +40,7 @@ var _ = Describe("Direct proxy integration test", Label("proxy"), func() { Expect(ipldBlock).To(BeZero()) }) - It("get not existing block by hash", func() { + It("gets not existing block by hash", func() { gethBlock, err := gethClient.BlockByHash(ctx, nonExistingBlockHash) Expect(err).To(MatchError(ethereum.NotFound)) Expect(gethBlock).To(BeZero()) @@ -50,7 +50,7 @@ var _ = Describe("Direct proxy integration test", Label("proxy"), func() { Expect(ipldBlock).To(BeZero()) }) - It("get block by number", func() { + It("gets block by number", func() { blockNum := contract.BlockNumber _, err := gethClient.BlockByNumber(ctx, big.NewInt(blockNum)) @@ -60,7 +60,7 @@ var _ = Describe("Direct proxy integration test", Label("proxy"), func() { Expect(err).To(HaveOccurred()) }) - It("get block by hash", func() { + It("gets block by hash", func() { _, err := gethClient.BlockByHash(ctx, contract.BlockHash) Expect(err).ToNot(HaveOccurred()) diff --git a/integration/integration_test.go b/integration/integration_test.go index 8592eee3..3966d47a 100644 --- a/integration/integration_test.go +++ b/integration/integration_test.go @@ -34,7 +34,7 @@ var _ = Describe("Basic integration test", func() { var contractErr error var txErr error - Describe("get Block", func() { + Describe("Get Block", func() { BeforeEach(func() { contract, contractErr = integration.DeployContract() Expect(contractErr).ToNot(HaveOccurred()) @@ -43,7 +43,7 @@ var _ = Describe("Basic integration test", func() { Expect(err).ToNot(HaveOccurred()) }) - It("get not existing block by number", func() { + It("gets not existing block by number", func() { blockNum := big.NewInt(contract.BlockNumber + 100) gethBlock, err := gethClient.BlockByNumber(ctx, blockNum) @@ -55,7 +55,7 @@ var _ = Describe("Basic integration test", func() { Expect(ipldBlock).To(BeZero()) }) - It("get not existing block by hash", func() { + It("gets not existing block by hash", func() { gethBlock, err := gethClient.BlockByHash(ctx, nonExistingBlockHash) Expect(err).To(MatchError(ethereum.NotFound)) Expect(gethBlock).To(BeZero()) @@ -65,7 +65,7 @@ var _ = Describe("Basic integration test", func() { Expect(ipldBlock).To(BeZero()) }) - It("get block by number", func() { + It("gets block by number", func() { blockNum := big.NewInt(contract.BlockNumber) gethBlock, err := gethClient.BlockByNumber(ctx, blockNum) @@ -84,7 +84,7 @@ var _ = Describe("Basic integration test", func() { Expect(types.TxDifference(gethTxs, ipldTxs).Len()).To(Equal(0)) }) - It("get block by hash", func() { + It("gets block by hash", func() { gethBlock, err := gethClient.BlockByHash(ctx, contract.BlockHash) Expect(err).ToNot(HaveOccurred()) diff --git a/test/compose-server.yml b/test/compose-server.yml index e92680de..2aa8bdb5 100644 --- a/test/compose-server.yml +++ b/test/compose-server.yml @@ -28,7 +28,7 @@ services: contract-deployer: restart: on-failure - image: cerc/ipld-eth-server/contract-deployer:local + image: cerc/ipld-eth-server/test-contract-deployer:local build: ./contract networks: - test_default