Commit 8e08a5ce authored by Ethen Pociask's avatar Ethen Pociask

[indexer.withdrawal_type_supplies] update e2e tesrt

parent b83d1031
...@@ -13,7 +13,7 @@ import ( ...@@ -13,7 +13,7 @@ import (
"github.com/stretchr/testify/require" "github.com/stretchr/testify/require"
) )
func assertNotEmpty(t *testing.T, item any) { func assertFieldsAreSet(t *testing.T, item any) {
structType := reflect.TypeOf(item) structType := reflect.TypeOf(item)
structVal := reflect.ValueOf(item) structVal := reflect.ValueOf(item)
...@@ -59,7 +59,7 @@ func TestWithdrawalResponse(t *testing.T) { ...@@ -59,7 +59,7 @@ func TestWithdrawalResponse(t *testing.T) {
response := svc.WithdrawResponse(withdraws) response := svc.WithdrawResponse(withdraws)
require.NotEmpty(t, response.Items) require.NotEmpty(t, response.Items)
require.Len(t, response.Items, 1) require.Len(t, response.Items, 1)
assertNotEmpty(t, response.Items[0]) assertFieldsAreSet(t, response.Items[0])
} }
func TestDepositResponse(t *testing.T) { func TestDepositResponse(t *testing.T) {
...@@ -90,7 +90,7 @@ func TestDepositResponse(t *testing.T) { ...@@ -90,7 +90,7 @@ func TestDepositResponse(t *testing.T) {
response := svc.DepositResponse(deposits) response := svc.DepositResponse(deposits)
require.NotEmpty(t, response.Items) require.NotEmpty(t, response.Items)
require.Len(t, response.Items, 1) require.Len(t, response.Items, 1)
assertNotEmpty(t, response.Items[0]) assertFieldsAreSet(t, response.Items[0])
} }
func TestQueryParams(t *testing.T) { func TestQueryParams(t *testing.T) {
......
...@@ -460,7 +460,6 @@ func TestClientBridgeFunctions(t *testing.T) { ...@@ -460,7 +460,6 @@ func TestClientBridgeFunctions(t *testing.T) {
// (2) Create test actors that will deposit and withdraw using the standard bridge // (2) Create test actors that will deposit and withdraw using the standard bridge
aliceAddr := testSuite.OpCfg.Secrets.Addresses().Alice aliceAddr := testSuite.OpCfg.Secrets.Addresses().Alice
bobAddr := testSuite.OpCfg.Secrets.Addresses().Bob bobAddr := testSuite.OpCfg.Secrets.Addresses().Bob
malAddr := testSuite.OpCfg.Secrets.Addresses().Mallory
type actor struct { type actor struct {
addr common.Address addr common.Address
...@@ -482,11 +481,6 @@ func TestClientBridgeFunctions(t *testing.T) { ...@@ -482,11 +481,6 @@ func TestClientBridgeFunctions(t *testing.T) {
priv: testSuite.OpCfg.Secrets.Bob, priv: testSuite.OpCfg.Secrets.Bob,
amt: big.NewInt(0), amt: big.NewInt(0),
}, },
{
addr: malAddr,
priv: testSuite.OpCfg.Secrets.Mallory,
amt: big.NewInt(0),
},
} }
type supplies struct { type supplies struct {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment