Skip to content

Commit

Permalink
add checks in failing test case
Browse files Browse the repository at this point in the history
  • Loading branch information
louisinger committed Sep 18, 2024
1 parent 21ec194 commit 5626e47
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions server/test/e2e/covenantless/e2e_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -308,6 +308,10 @@ func TestAliceSeveralPaymentsToBob(t *testing.T) {
_, err = alice.SendOffChain(ctx, false, []arksdk.Receiver{arksdk.NewBitcoinReceiver(bobAddress, 1000)})
require.NoError(t, err)

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

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

Expand All @@ -317,9 +321,17 @@ func TestAliceSeveralPaymentsToBob(t *testing.T) {
_, err = alice.SendOffChain(ctx, false, []arksdk.Receiver{arksdk.NewBitcoinReceiver(bobAddress, 10000)})
require.NoError(t, err)

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

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

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

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

Expand Down

0 comments on commit 5626e47

Please sign in to comment.