Skip to content

Commit

Permalink
add test
Browse files Browse the repository at this point in the history
  • Loading branch information
gitferry committed Apr 4, 2024
1 parent b1efcc8 commit 4ffc885
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions covenant/covenant_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -180,6 +180,12 @@ func FuzzAddCovenantSig(f *testing.F) {
})
}

// add one invalid delegation to expect it does not affect others
invalidDelegation := &types.Delegation{
StakingTxHex: "xxxx",
}
btcDels = append(btcDels, invalidDelegation)

// check the sigs are expected
expectedTxHash := testutil.GenRandomHexStr(r, 32)
mockClientController.EXPECT().SubmitCovenantSigs(covSigsSet).
Expand Down

0 comments on commit 4ffc885

Please sign in to comment.