mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-08-17 17:33:47 +00:00
contracts/chequebook: increase interval between auto deposits
This commit is contained in:
parent
bcab1fc348
commit
c66147d93b
1 changed files with 3 additions and 3 deletions
|
|
@ -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")
|
path0 := filepath.Join(os.TempDir(), "chequebook-test-0.json")
|
||||||
backend := newTestBackend()
|
backend := newTestBackend()
|
||||||
contr0, _ := deploy(key0, new(big.Int), backend)
|
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())
|
t.Fatalf("expected balance %v, got %v", exp, chbook.Balance())
|
||||||
}
|
}
|
||||||
|
|
||||||
// autodeposit every 30ms if new cheque issued
|
// autodeposit every 200ms if new cheque issued
|
||||||
interval := 30 * time.Millisecond
|
interval := 200 * time.Millisecond
|
||||||
chbook.AutoDeposit(interval, common.Big1, balance)
|
chbook.AutoDeposit(interval, common.Big1, balance)
|
||||||
_, err = chbook.Issue(addr1, amount)
|
_, err = chbook.Issue(addr1, amount)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue