Skip to content

Commit

Permalink
simplify AliceSeveralPaymentsBob test
Browse files Browse the repository at this point in the history
  • Loading branch information
louisinger committed Sep 19, 2024
1 parent 61bc927 commit 0dc685f
Showing 1 changed file with 1 addition and 10 deletions.
11 changes: 1 addition & 10 deletions server/test/e2e/covenantless/e2e_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -350,21 +350,12 @@ func TestAliceSeveralPaymentsToBob(t *testing.T) {
_, err = alice.Claim(ctx)
require.NoError(t, err)

_, err = alice.SendAsync(ctx, false, []arksdk.Receiver{arksdk.NewBitcoinReceiver(bobAddress, 10000)})
require.NoError(t, err)

time.Sleep(2 * time.Second)

bobVtxos, _, err = bob.ListVtxos(ctx)
require.NoError(t, err)
require.Len(t, bobVtxos, 5)

// bobVtxos should be unique
uniqueVtxos := make(map[string]struct{})
for _, v := range bobVtxos {
uniqueVtxos[fmt.Sprintf("%s:%d", v.Txid, v.VOut)] = struct{}{}
}
require.Len(t, uniqueVtxos, 5)
require.Len(t, uniqueVtxos, 4)

_, err = bob.Claim(ctx)
require.NoError(t, err)
Expand Down

0 comments on commit 0dc685f

Please sign in to comment.