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

[indexer.withdrawal_type_supplies] update e2e tesrt

parent b83d1031
......@@ -13,7 +13,7 @@ import (
"github.com/stretchr/testify/require"
)
func assertNotEmpty(t *testing.T, item any) {
func assertFieldsAreSet(t *testing.T, item any) {
structType := reflect.TypeOf(item)
structVal := reflect.ValueOf(item)
......@@ -59,7 +59,7 @@ func TestWithdrawalResponse(t *testing.T) {
response := svc.WithdrawResponse(withdraws)
require.NotEmpty(t, response.Items)
require.Len(t, response.Items, 1)
assertNotEmpty(t, response.Items[0])
assertFieldsAreSet(t, response.Items[0])
}
func TestDepositResponse(t *testing.T) {
......@@ -90,7 +90,7 @@ func TestDepositResponse(t *testing.T) {
response := svc.DepositResponse(deposits)
require.NotEmpty(t, response.Items)
require.Len(t, response.Items, 1)
assertNotEmpty(t, response.Items[0])
assertFieldsAreSet(t, response.Items[0])
}
func TestQueryParams(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
aliceAddr := testSuite.OpCfg.Secrets.Addresses().Alice
bobAddr := testSuite.OpCfg.Secrets.Addresses().Bob
malAddr := testSuite.OpCfg.Secrets.Addresses().Mallory
type actor struct {
addr common.Address
......@@ -482,11 +481,6 @@ func TestClientBridgeFunctions(t *testing.T) {
priv: testSuite.OpCfg.Secrets.Bob,
amt: big.NewInt(0),
},
{
addr: malAddr,
priv: testSuite.OpCfg.Secrets.Mallory,
amt: big.NewInt(0),
},
}
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