Skip to content
This repository was archived by the owner on Jan 24, 2025. It is now read-only.

Commit 1d9e9d2

Browse files
Simplify account creation
1 parent b658e6d commit 1d9e9d2

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

tools/docker-network/tests/nil_payload_test.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -38,12 +38,12 @@ func Test_Payload_Nil_Test(t *testing.T) {
3838
t.Cleanup(cancel)
3939

4040
// create account-1
41-
accounts := d.CreateAccountsFromFaucet(ctx, 1, "account-1")
42-
account1 := accounts[0]
41+
account := d.CreateAccountFromFaucet("account-1")
4342

4443
// Issue a block with a nil payload.
45-
blk := lo.PanicOnErr(account1.Wallet().CreateBasicBlock(ctx, "something", mock.WithPayload(nil)))
44+
blk := lo.PanicOnErr(account.Wallet().CreateBasicBlock(ctx, "something", mock.WithPayload(nil)))
4645
d.SubmitBlock(ctx, blk.ProtocolBlock())
4746

47+
// Wait for the epoch end to ensure the test does not exit early.
4848
d.AwaitEpochFinalized()
4949
}

0 commit comments

Comments
 (0)