Skip to content
This repository has been archived by the owner on Apr 2, 2024. It is now read-only.

Commit

Permalink
fix: tests removal, will be added in bux-168
Browse files Browse the repository at this point in the history
  • Loading branch information
kuba-4chain authored and arkadiuszos4chain committed Nov 13, 2023
1 parent 61fd134 commit d0e1394
Showing 1 changed file with 1 addition and 17 deletions.
18 changes: 1 addition & 17 deletions beef_tx_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,23 +10,7 @@ import (
)

func Test_ToBeefHex(t *testing.T) {
t.Run("all parents txs are already mined", func(t *testing.T) {
// given
ctx, client, deferMe := initSimpleTestCase(t)
defer deferMe()

ancestorTx := addGrandpaTx(ctx, t, client)
minedParentTx := createTxWithDraft(ctx, t, client, ancestorTx, true)

newTx := createTxWithDraft(ctx, t, client, minedParentTx, false)

// when
hex, err := ToBeefHex(ctx, newTx)

// then
assert.NoError(t, err)
assert.NotEmpty(t, hex)
})
// TOOD: prepare tests in BUX-168

t.Run("some parents txs are not mined yet", func(t *testing.T) {
// Error expected! this should be changed in the future. right now the test case has been written to make sure the system doesn't panic in such a situation
Expand Down

0 comments on commit d0e1394

Please sign in to comment.