|
@@ -311,3 +311,19 @@ fn unsuccessful_reward_claim_with_no_reward_account_found() {
|
|
|
.call_and_assert(Err(Error::<Test>::RewardAccountNotFoundInChannel.into()));
|
|
|
})
|
|
|
}
|
|
|
+
|
|
|
+#[test]
|
|
|
+fn unsuccessful_reward_claim_with_no_commitment_value_outstanding() {
|
|
|
+ with_default_mock_builder(|| {
|
|
|
+ run_to_block(1);
|
|
|
+
|
|
|
+ create_initial_storage_buckets_helper();
|
|
|
+ increase_account_balance_helper(DEFAULT_MEMBER_ACCOUNT_ID, INITIAL_BALANCE);
|
|
|
+ create_default_member_owned_channel_with_video();
|
|
|
+ let payments = create_some_pull_payments_helper();
|
|
|
+
|
|
|
+ ClaimChannelRewardFixture::default()
|
|
|
+ .with_payments(payments)
|
|
|
+ .call_and_assert(Err(Error::<Test>::PaymentProofVerificationFailed.into()))
|
|
|
+ })
|
|
|
+}
|