Add sleep interval.

This commit is contained in:
Arijit Das 2021-09-22 16:28:57 +05:30
parent 54db8f23e0
commit 81546618d3

View File

@ -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))