Skip to content

Commit

Permalink
chore: add sleep after file and contract creation
Browse files Browse the repository at this point in the history
  • Loading branch information
janaakhterov committed Jul 24, 2020
1 parent 43ad516 commit 70bf31a
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion contract_info_query_test.go
Original file line number Diff line number Diff line change
@@ -1,10 +1,12 @@
package hedera

import (
"github.com/stretchr/testify/assert"
"os"
"strings"
"testing"
"time"

"github.com/stretchr/testify/assert"
)

func TestNewContractInfoQuery(t *testing.T) {
Expand Down Expand Up @@ -54,6 +56,8 @@ func TestContractInfoQuery_Execute(t *testing.T) {
fileID := receipt.GetFileID()
assert.NotNil(t, fileID)

time.Sleep(5 * time.Second)

txID, err = NewContractCreateTransaction().
SetAdminKey(client.GetOperatorKey()).
SetGas(2000).
Expand All @@ -64,6 +68,8 @@ func TestContractInfoQuery_Execute(t *testing.T) {
Execute(client)
assert.NoError(t, err)

time.Sleep(5 * time.Second)

receipt, err = txID.GetReceipt(client)
assert.NoError(t, err)

Expand Down

0 comments on commit 70bf31a

Please sign in to comment.