Skip to content

Commit 25c084a

Browse files
committed
change WaitForTransactionReceipt Test
1 parent 9392336 commit 25c084a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

core/retry_test.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -153,7 +153,7 @@ func TestWaitForTransactionReceipt(t *testing.T) {
153153
}
154154

155155
// Assert Call succeeds when Anvil running
156-
_, err = utils.WaitForTransactionReceiptRetryable(*client, *client, hash, time.Second*45)
156+
_, err = utils.WaitForTransactionReceiptRetryable(*client, *client, hash, time.Second*1)
157157
assert.NotNil(t, err, "Error Waiting for Transaction with Anvil Running: %s\n", err)
158158
if !strings.Contains(err.Error(), "not found") {
159159
t.Errorf("WaitForTransactionReceipt Emitted incorrect error: %s\n", err)
@@ -165,7 +165,7 @@ func TestWaitForTransactionReceipt(t *testing.T) {
165165
return
166166
}
167167

168-
_, err = utils.WaitForTransactionReceiptRetryable(*client, *client, hash, time.Second*45)
168+
_, err = utils.WaitForTransactionReceiptRetryable(*client, *client, hash, time.Second*1)
169169
assert.NotNil(t, err)
170170
if _, ok := err.(retry.PermanentError); ok {
171171
t.Errorf("WaitForTransactionReceipt Emitted non Transient error: %s\n", err)

0 commit comments

Comments
 (0)