mirror of
https://github.com/arnaucube/hermez-node.git
synced 2026-02-07 19:36:44 +01:00
Update test ethclient and coordinator
This commit is contained in:
@@ -31,7 +31,7 @@ func TestClientInterface(t *testing.T) {
|
||||
var c eth.ClientInterface
|
||||
var timer timer
|
||||
clientSetup := NewClientSetupExample()
|
||||
client := NewClient(true, &timer, ethCommon.Address{}, clientSetup)
|
||||
client := NewClient(true, &timer, ðCommon.Address{}, clientSetup)
|
||||
c = client
|
||||
require.NotNil(t, c)
|
||||
}
|
||||
@@ -39,7 +39,7 @@ func TestClientInterface(t *testing.T) {
|
||||
func TestClientEth(t *testing.T) {
|
||||
var timer timer
|
||||
clientSetup := NewClientSetupExample()
|
||||
c := NewClient(true, &timer, ethCommon.Address{}, clientSetup)
|
||||
c := NewClient(true, &timer, ðCommon.Address{}, clientSetup)
|
||||
blockNum, err := c.EthCurrentBlock()
|
||||
require.Nil(t, err)
|
||||
assert.Equal(t, int64(0), blockNum)
|
||||
@@ -76,7 +76,7 @@ func TestClientAuction(t *testing.T) {
|
||||
clientSetup.AuctionVariables.DefaultSlotSetBid = [6]*big.Int{
|
||||
big.NewInt(1000), big.NewInt(1100), big.NewInt(1200),
|
||||
big.NewInt(1300), big.NewInt(1400), big.NewInt(1500)}
|
||||
c := NewClient(true, &timer, addrWithdraw, clientSetup)
|
||||
c := NewClient(true, &timer, &addrWithdraw, clientSetup)
|
||||
|
||||
// Check several cases in which bid doesn't succed, and also do 2 successful bids.
|
||||
|
||||
@@ -124,7 +124,7 @@ func TestClientRollup(t *testing.T) {
|
||||
|
||||
var timer timer
|
||||
clientSetup := NewClientSetupExample()
|
||||
c := NewClient(true, &timer, ethCommon.Address{}, clientSetup)
|
||||
c := NewClient(true, &timer, ðCommon.Address{}, clientSetup)
|
||||
|
||||
// Add a token
|
||||
|
||||
|
||||
Reference in New Issue
Block a user