Skip to content

Commit

Permalink
test: GetLiveCell with includedTxPool
Browse files Browse the repository at this point in the history
  • Loading branch information
shaojunda committed Aug 15, 2024
1 parent c8d59c8 commit 6652dde
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions rpc/client_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -402,6 +402,21 @@ func TestClient_GetLiveCell(t *testing.T) {
assert.NotNil(t, cellWithStatus)
}

func TestClient_GetLiveCellIncludeTxPool(t *testing.T) {
outPoint := types.OutPoint{
TxHash: types.HexToHash("0xf8de3bb47d055cdf460d93a2a6e1b05f7432f9777c8c474abf4eec1d4aee5d37"),
Index: 0,
}

includeTxPool := true

cellWithStatus, err := testClient.GetLiveCell(ctx, &outPoint, true, &includeTxPool)
if err != nil {
t.Fatal(err)
}
assert.NotNil(t, cellWithStatus)
}

func TestGetTip(t *testing.T) {
resp, err := testClient.GetIndexerTip(context.Background())
assert.NoError(t, err)
Expand Down

0 comments on commit 6652dde

Please sign in to comment.