From 81546618d3b7dc9a1944d46f35d6fbda7911e0cb Mon Sep 17 00:00:00 2001 From: Arijit Das Date: Wed, 22 Sep 2021 16:28:57 +0530 Subject: [PATCH] Add sleep interval. --- test/integration_test.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/test/integration_test.go b/test/integration_test.go index f2663568..354972fc 100644 --- a/test/integration_test.go +++ b/test/integration_test.go @@ -399,6 +399,8 @@ var _ = Describe("Integration test", func() { tx, err := integration.DestoyContract(contract.Address) Expect(err).ToNot(HaveOccurred()) + time.Sleep(sleepInterval) + gethStorage1, err := gethClient.StorageAt(ctx, common.HexToAddress(contract.Address), common.HexToHash(totalSupplyIndex), big.NewInt(tx.BlockNumber-1)) Expect(err).ToNot(HaveOccurred()) gethStorage2, err := gethClient.StorageAt(ctx, common.HexToAddress(contract.Address), common.HexToHash(totalSupplyIndex), big.NewInt(tx.BlockNumber))