Skip to content

Commit

Permalink
tidy
Browse files Browse the repository at this point in the history
  • Loading branch information
BedrockSquirrel committed May 9, 2024
1 parent 83cb136 commit 4e618a9
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion integration/networktest/actions/subscription_actions.go
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ func (r *recordNewHeadsSubscriptionAction) Run(ctx context.Context, network netw
return ctx, nil
}

func (r *recordNewHeadsSubscriptionAction) Verify(ctx context.Context, network networktest.NetworkConnector) error {
func (r *recordNewHeadsSubscriptionAction) Verify(_ context.Context, _ networktest.NetworkConnector) error {
if len(r.recordedHeads) == 0 {
return fmt.Errorf("no new heads received during the %s period", r.duration)
}
Expand Down
2 changes: 1 addition & 1 deletion integration/networktest/tests/helpful/smoke_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ func TestExecuteNativeFundsTransfer(t *testing.T) {
networktest.Run(
"native-funds-smoketest",
t,
env.UATTestnet(),
env.LocalDevNetwork(),
actions.Series(
&actions.CreateTestUser{UserID: 0},
&actions.CreateTestUser{UserID: 1},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,22 +7,22 @@ import (
"github.com/ten-protocol/go-ten/integration/networktest"
"github.com/ten-protocol/go-ten/integration/networktest/actions"
"github.com/ten-protocol/go-ten/integration/networktest/env"
"github.com/ten-protocol/go-ten/integration/simulation/devnetwork"
)

// this test goes via the gateway only for now
func TestGatewayNewHeadsSubscription(t *testing.T) {
networktest.TestOnlyRunsInIDE(t)
networktest.Run(
"gateway-new-heads-subscription",
t,
env.UATTestnet(), //env.LocalDevNetwork(devnetwork.WithGateway()),
env.LocalDevNetwork(devnetwork.WithGateway()),
actions.Series(
// user not technically needed, but we need a gateway address to use
&actions.CreateTestUser{UserID: 0, UseGateway: true},
actions.SetContextValue(actions.KeyNumberOfTestUsers, 1),

// Record new heads for 30 seconds, verify that the subscription is working
actions.RecordNewHeadsSubscription(30*time.Second),
// Record new heads for specified duration, verify that the subscription is working
actions.RecordNewHeadsSubscription(20*time.Second),
),
)
}

0 comments on commit 4e618a9

Please sign in to comment.