Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
N
nebula
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
exchain
nebula
Commits
8e08a5ce
Unverified
Commit
8e08a5ce
authored
Nov 28, 2023
by
Ethen Pociask
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[indexer.withdrawal_type_supplies] update e2e tesrt
parent
b83d1031
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
9 deletions
+3
-9
service_test.go
indexer/api/service/service_test.go
+3
-3
bridge_transfers_e2e_test.go
indexer/e2e_tests/bridge_transfers_e2e_test.go
+0
-6
No files found.
indexer/api/service/service_test.go
View file @
8e08a5ce
...
@@ -13,7 +13,7 @@ import (
...
@@ -13,7 +13,7 @@ import (
"github.com/stretchr/testify/require"
"github.com/stretchr/testify/require"
)
)
func
assert
NotEmpty
(
t
*
testing
.
T
,
item
any
)
{
func
assert
FieldsAreSet
(
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
)
assert
NotEmpty
(
t
,
response
.
Items
[
0
])
assert
FieldsAreSet
(
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
)
assert
NotEmpty
(
t
,
response
.
Items
[
0
])
assert
FieldsAreSet
(
t
,
response
.
Items
[
0
])
}
}
func
TestQueryParams
(
t
*
testing
.
T
)
{
func
TestQueryParams
(
t
*
testing
.
T
)
{
...
...
indexer/e2e_tests/bridge_transfers_e2e_test.go
View file @
8e08a5ce
...
@@ -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
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment