From c66147d93b5fe73c1c37d8fc43ffdb53b0493f0e Mon Sep 17 00:00:00 2001 From: Anton Evangelatov Date: Fri, 16 Feb 2018 18:09:42 +0100 Subject: [PATCH] contracts/chequebook: increase interval between auto deposits --- contracts/chequebook/cheque_test.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/contracts/chequebook/cheque_test.go b/contracts/chequebook/cheque_test.go index b55a21818e..6b6b28e657 100644 --- a/contracts/chequebook/cheque_test.go +++ b/contracts/chequebook/cheque_test.go @@ -219,7 +219,7 @@ func TestVerifyErrors(t *testing.T) { } -func XTestDeposit(t *testing.T) { +func TestDeposit(t *testing.T) { path0 := filepath.Join(os.TempDir(), "chequebook-test-0.json") backend := newTestBackend() contr0, _ := deploy(key0, new(big.Int), backend) @@ -281,8 +281,8 @@ func XTestDeposit(t *testing.T) { t.Fatalf("expected balance %v, got %v", exp, chbook.Balance()) } - // autodeposit every 30ms if new cheque issued - interval := 30 * time.Millisecond + // autodeposit every 200ms if new cheque issued + interval := 200 * time.Millisecond chbook.AutoDeposit(interval, common.Big1, balance) _, err = chbook.Issue(addr1, amount) if err != nil {