From 4ffc8852fe383484220b367558eed16b44744d52 Mon Sep 17 00:00:00 2001 From: Fangyu Gai Date: Thu, 4 Apr 2024 16:24:50 +0800 Subject: [PATCH] add test --- covenant/covenant_test.go | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/covenant/covenant_test.go b/covenant/covenant_test.go index 3112a45..9a3a75f 100644 --- a/covenant/covenant_test.go +++ b/covenant/covenant_test.go @@ -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).