Skip to content

Commit ecc256d

Browse files
authored
Merge pull request #1715 from lightninglabs/itest-flake-fix
itest: fix flake in address v2 test
2 parents 17da06e + 415f752 commit ecc256d

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

itest/addrs_v2_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -356,11 +356,11 @@ func testAddressV2WithGroupKey(t *harnessTest) {
356356
[]uint64{0, totalAmount/2 - 50, 50, 0, totalAmount / 2}, 1,
357357
2, 5, true,
358358
)
359-
AssertAddrEventByStatus(t.t, t.tapd, statusCompleted, 1)
360359
AssertBalanceByGroup(
361360
t.t, t.tapd, hex.EncodeToString(groupKey), totalAmount,
362361
WithNumUtxos(4),
363362
)
363+
AssertAddrEventByStatus(t.t, t.tapd, statusCompleted, 2)
364364

365365
// The sending node should only have two tombstone outputs, but the
366366
// total value should be zero.

itest/assertions.go

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -941,8 +941,9 @@ func AssertAddrEventByStatus(t *testing.T, client taprpc.TaprootAssetsClient,
941941
require.NoError(t, err)
942942

943943
if len(resp.Events) != numEvents {
944-
return fmt.Errorf("got %d events, wanted %d",
945-
len(resp.Events), numEvents)
944+
return fmt.Errorf("got %d events, wanted %d, events: "+
945+
"%v", len(resp.Events), numEvents,
946+
toJSON(t, resp))
946947
}
947948

948949
for _, event := range resp.Events {

0 commit comments

Comments
 (0)