-
Notifications
You must be signed in to change notification settings - Fork 204
Expand file tree
/
Copy pathtest_failures.txt
More file actions
688 lines (614 loc) · 99.3 KB
/
Copy pathtest_failures.txt
File metadata and controls
688 lines (614 loc) · 99.3 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
cargo : warning: unused import: `Subscription`
At line:1 char:1
+ cargo test -p subscription_vault --lib 2>&1 | Out-File -FilePath test ...
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : NotSpecified: (warning: unused import: `Subscription`:String) [], RemoteException
+ FullyQualifiedErrorId : NativeCommandError
--> contracts\subscription_vault\src\charge_core.rs:21:30
|
21 | LifetimeCapReachedEvent, Subscription, SubscriptionChargeFailedEvent, SubscriptionChargedEvent,
| ^^^^^^^^^^^^
|
= note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default
warning: unused imports: `SubscriptionRecoveryReadyEvent as SubscriptionRecoveryReadyEventAlias` and `UsageState`
--> contracts\subscription_vault\src\subscription.rs:44:5
|
44 | SubscriptionRecoveryReadyEvent as SubscriptionRecoveryReadyEventAlias, SubscriptionStatus,
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
45 | UsageLimits, UsageState,
| ^^^^^^^^^^
warning: unused import: `Val`
--> contracts\subscription_vault\src\test_auth_fuzz.rs:8:47
|
8 | Address, Env, Vec as SorobanVec, IntoVal, Val,
| ^^^
warning: unused import: `Ledger as _`
--> contracts\subscription_vault\src\test_recovery.rs:6:57
|
6 | use soroban_sdk::testutils::{Address as _, Events as _, Ledger as _};
| ^^^^^^^^^^^
warning: unused imports: `IntoVal` and `Symbol`
--> contracts\subscription_vault\src\test_recovery.rs:7:48
|
7 | use soroban_sdk::{token, Address, Env, String, Symbol, IntoVal};
| ^^^^^^ ^^^^^^^
warning: unused variable: `token_addr`
--> contracts\subscription_vault\src\subscription.rs:823:9
|
823 | let token_addr = sub.token.clone();
| ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_token_addr`
|
= note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default
warning: unused variable: `tracked_batch`
--> contracts\subscription_vault\src\test.rs:1843:9
|
1843 | let tracked_batch = [valid_batch, low_batch, paused_batch];
| ^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_tracked_batch`
warning: unused variable: `tracked_single`
--> contracts\subscription_vault\src\test.rs:1844:9
|
1844 | let tracked_single = [valid_single, low_single, paused_single];
| ^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_tracked_single`
warning: unused variable: `id1`
--> contracts\subscription_vault\src\test.rs:3087:9
|
3087 | let id1 = test_env.client.create_subscription(
| ^^^ help: if this is intentional, prefix it with an underscore: `_id1`
warning: unused variable: `deposit_balance`
--> contracts\subscription_vault\src\test_expiration.rs:118:9
|
118 | let deposit_balance = (min_topup * 5) - 0; // no charges made before expiry
| ^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_deposit_balance`
warning: unused variable: `token_admin`
--> contracts\subscription_vault\src\test_expiration.rs:129:30
|
129 | let (env, client, token, token_admin, _) = setup_test_env();
| ^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore:
`_token_admin`
warning: unused variable: `expires_at`
--> contracts\subscription_vault\src\test_expiration.rs:133:9
|
133 | let expires_at = T0 + 2 * INTERVAL;
| ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_expires_at`
warning: unused variable: `token_admin`
--> contracts\subscription_vault\src\test_recovery.rs:35:9
|
35 | let token_admin = admin.clone();
| ^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_token_admin`
warning: unused variable: `admin`
--> contracts\subscription_vault\src\test_recovery.rs:72:30
|
72 | let (env, client, token, admin) = setup_env();
| ^^^^^ help: if this is intentional, prefix it with an underscore: `_admin`
warning: function `create_token_and_mint` is never used
--> contracts\subscription_vault\src\test.rs:41:4
|
41 | fn create_token_and_mint(env: &Env, recipient: &Address, amount: i128) -> Address {
| ^^^^^^^^^^^^^^^^^^^^^
|
= note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default
warning: function `seed_counter` is never used
--> contracts\subscription_vault\src\test.rs:117:4
|
117 | fn seed_counter(env: &Env, contract_id: &Address, value: u32) {
| ^^^^^^^^^^^^
warning: function `set_status` is never used
--> contracts\subscription_vault\src\test.rs:5703:4
|
5703 | fn set_status(env: &Env, client: &SubscriptionVaultClient, id: u32, status: SubscriptionStatus) {
| ^^^^^^^^^^
warning: constant `T0` is never used
--> contracts\subscription_vault\src\test_recovery.rs:12:7
|
12 | const T0: u64 = 1_000;
| ^^
warning: `subscription_vault` (lib test) generated 18 warnings (run `cargo fix --lib -p subscription_vault --tests` to
apply 14 suggestions)
Finished `test` profile [unoptimized + debuginfo] target(s) in 1.26s
Running unittests src\lib.rs (target\debug\deps\subscription_vault-df0147f5d56ac4fb.exe)
running 343 tests
test safe_math::tests::test_safe_div ... ok
test safe_math::tests::test_safe_mul ... ok
test safe_math::tests::test_safe_add ... ok
test safe_math::tests::test_safe_pow ... ok
test safe_math::tests::test_safe_sub ... ok
test migration::test::test_export_limit_zero_fails - should panic ... ok
test migration::test::test_export_limit_exceeds_max_fails - should panic ... ok
test migration::test::test_unauthorized_access_fails - should panic ... ok
test migration::test::test_sparse_id_pagination ... ok
test test::idempotent_pause_does_not_emit_event ... ok
test test::pause_by_stranger_returns_forbidden ... ok
test test::idempotent_resume_does_not_emit_event ... ok
test test::pause_emits_event ... ok
test test::merchant_pauses_subscriber_resumes ... ok
test test::pause_from_cancelled_returns_invalid_transition ... ok
test test::storage_layout::test_all_status_variants_round_trip_through_storage ... ok
test test::pause_from_insufficient_balance_returns_invalid_transition ... ok
test test::resume_from_cancelled_returns_invalid_transition ... ok
test test::repeated_pause_resume_cycles_stay_consistent ... ok
test test::storage_layout::test_error_codes_are_stable ... ok
test test::resume_by_stranger_returns_forbidden ... ok
test test::resume_emits_event ... ok
test test::storage_layout::test_subscription_key_does_not_collide_with_config_keys ... ok
test test::storage_layout::test_datakey_discriminants_are_stable ... ok
test test::storage_layout::test_subscription_status_discriminants_are_stable ... ok
test test::storage_layout::test_schema_version_is_set_after_init ... ok
test test::storage_layout::test_legacy_subscription_without_cap_is_deserializable ... ok
test test::storage_layout::test_subscription_struct_round_trips_through_storage ... ok
test test::storage_layout::test_subscription_with_no_lifetime_cap_is_readable ... ok
test test::test_admin_cannot_be_rotated_by_previous_admin ... ok
test test::storage_layout::test_subscription_with_lifetime_cap_persists_correctly ... ok
test test::subscriber_pauses_merchant_resumes ... ok
test test::test_admin_rotation_access_control_comprehensive ... ok
test test::test_admin_rotation_affects_recovery_operations ... FAILED
test test::test_admin_rotation_event_emission ... ok
test test::test_admin_rotation_does_not_affect_subscriptions ... ok
test test::test_admin_rotation_with_subscriptions_active ... ok
test test::test_all_admin_operations_after_rotation ... FAILED
test test::test_admin_authorization_matrix_rejects_non_admin_across_protected_entrypoints ... ok
test test::test_admin_authorization_matrix_rejects_stale_admin_after_rotation ... ok
test test::test_balance_preserved_on_cancel ... ok
test test::test_balance_preserved_across_pause_resume ... ok
test test::test_batch_charge_allowed_for_new_admin_after_rotation ... ok
test test::test_batch_charge_basic ... ok
test test::test_batch_charge_fails_unauthorized - should panic ... ok
test test::test_batch_charge ... ok
test test::test_batch_charge_duplicate_ids ... ok
test test::test_all_valid_transitions_coverage ... ok
test test::resume_actor_cases ... ok
test test::test_batch_charge_failed_items_match_single_path_without_cross_item_side_effects ... ok
test test::test_batch_charge_partial_success ... ok
test test::test_batch_charge_mixed_results_preserve_single_path_order_and_error_codes ... ok
test test::pause_actor_cases ... ok
test test::test_batch_charge_uses_stored_admin_after_rotation ... ok
test test::test_billing_retention_rapid_config_changes ... ok
test test::test_billing_lifecycle_delayed_charge_and_min_topup_progression ... FAILED
test test::test_batch_charge_matches_single_charge_semantics_for_identical_inputs ... ok
test test::test_billing_lifecycle_golden_path_end_to_end ... ok
test test::test_batch_charge_with_paused_and_cancelled ... ok
test test::test_blocklist_add_and_remove_events_capture_reason_variants ... ok
test test::test_can_transition_helper ... ok
test test::test_billing_statements_cursor_pagination_boundaries ... ok
test test::test_blocklist_rejects_duplicate_add_and_preserves_original_entry ... ok
test test::test_billing_statements_offset_pagination_newest_first ... ok
test test::test_cancel_from_various_states ... ok
test test::test_cancel_subscription_from_active ... ok
test test::test_cancel_during_grace_period ... ok
test test::test_cancel_and_withdraw_events ... ok
test test::test_cancel_subscription_unauthorized ... ok
test test::test_cancel_subscription_from_cancelled_is_idempotent ... ok
test test::test_cancel_then_pause_blocked ... ok
test test::test_cancel_subscription_from_paused ... ok
test test::test_charge_blocked_after_cancel ... ok
test test::test_charge_blocked_while_paused ... ok
test test::test_cancelled_to_insufficient_balance_blocked ... ok
test test::test_blocklist_enforced_across_mutating_subscription_flows_and_unblock_restores_access ... ok
test test::test_charge_subscription_paused_fails - should panic ... ok
test test::test_charge_subscription_basic ... ok
test test::test_charge_subscription_insufficient_balance_returns_error ... ok
test test::test_charge_usage_basic ... ok
test test::test_cap_cancelled_subscriber_can_withdraw ... ok
test test::test_compact_billing_statements_non_admin_rejected ... ok
test test::test_charge_usage_not_enabled - should panic ... ok
test test::test_compaction_no_rows_and_override_value ... ok
test test::test_compute_next_charge_info_active ... ok
test test::test_compute_next_charge_info_cancelled ... ok
test test::test_compute_next_charge_info_insufficient_balance ... FAILED
test test::test_compute_next_charge_info_overflow_protection ... ok
test test::test_compute_next_charge_info_paused ... ok
test test::test_compaction_aggregation_accuracy ... ok
test test::test_compaction_keep_recent_zero_prunes_all_detail ... ok
test test::test_compaction_idempotent_second_run ... ok
test test::test_create_subscription_blocklisted_subscriber_rejected ... ok
test test::test_create_subscription_interval_too_small_rejected ... ok
test test::test_create_subscription_blocked_by_emergency_stop - should panic ... ok
test test::test_create_subscription_max_amount_cap_smaller_rejected ... ok
test test::test_compaction_override_respects_per_run_threshold ... ok
test test::test_create_subscription_lifetime_cap_less_than_amount_rejected ... ok
test test::test_create_subscription_with_token_blocklisted_subscriber_rejected ... ok
test test::test_compaction_prunes_old_statements_and_keeps_recent ... ok
test test::test_create_subscription_with_token_zero_amount_rejected ... ok
test test::test_create_subscription_with_unaccepted_token_fails ... ok
test test::test_create_subscription_with_token_interval_too_small_rejected ... ok
test test::test_create_subscription_max_amount_and_cap_succeeds ... ok
test test::test_cursor_termination ... ok
test test::test_create_subscription_with_token_lifetime_cap_less_than_amount_rejected ... ok
test test::test_create_subscription_zero_amount_rejected ... ok
test test::test_deposit_funds_basic ... ok
test test::test_deposit_funds_unauthorized - should panic ... FAILED
test test::test_deposit_funds_event_payload ... ok
test test::test_deposit_funds_below_minimum - should panic ... ok
test test::test_estimate_topup_balance_already_sufficient_returns_zero ... ok
test test::test_emergency_stop ... ok
test test::test_empty_history ... ok
test test::test_estimate_topup_cross_check_after_actual_charge ... ok
test test::test_cursor_pagination_continuity ... ok
test test::test_export_contract_snapshot ... ok
test test::test_event_schema_consistency ... ok
test test::test_deposit_funds_cei_compliance ... ok
test test::test_get_admin_returns_init_admin ... ok
test test::test_get_allowed_transitions ... ok
test test::test_get_admin_before_and_after_rotation ... ok
test test::test_get_oracle_config_default_is_disabled ... ok
test test::test_estimate_topup_overflow_protection ... ok
test test::test_get_oracle_config_reflects_set_values ... ok
test test::test_full_lifecycle_active_pause_resume ... ok
test test::test_estimate_topup_zero_intervals_returns_zero ... ok
test test::test_export_subscription_summaries ... ok
test test::test_get_cap_info ... ok
test test::test_get_subscriptions_by_token_pagination_and_count ... ok
test test::test_idempotent_cancel_preserves_all_fields ... ok
test test::test_invalid_cancelled_to_active - should panic ... ok
test test::test_invalid_insufficient_balance_to_paused - should panic ... ok
test test::test_invalid_limit ... ok
test test::test_get_subscriber_credit_limit_and_exposure_views ... ok
test test::test_idempotent_pause_preserves_all_fields ... ok
test test::test_list_subscriptions_by_subscriber_pagination_and_sparse_ids ... ok
test test::test_get_subscriptions_by_merchant_pagination_and_invalid_limit ... ok
test test::test_list_subscriptions_by_subscriber_limit_zero_errors ... ok
test test::test_list_subscriptions_by_subscriber ... ok
test test::test_insufficient_deposit_resume_flow ... ok
test test::test_lifetime_cap_auto_cancel ... ok
test test::test_merchant_balance_and_withdrawal ... ok
test test::test_metadata_delete_nonexistent_key - should panic ... ok
test test::test_metadata_delete_nonexistent_try_api ... ok
test test::test_metadata_delete ... ok
test test::test_metadata_delete_on_cancelled_subscription_allowed ... ok
test test::test_metadata_delete_unauthorized_rejected - should panic ... ok
test test::test_list_subscriptions_by_subscriber_pagination_stable_ordering ... ok
test test::test_metadata_delete_then_re_add ... ok
test test::test_metadata_delete_frees_key_slot ... ok
test test::test_merchant_token_bucket_reconciliation ... ok
test test::test_metadata_does_not_affect_financial_state ... ok
test test::test_metadata_get_nonexistent_key - should panic ... ok
test test::test_metadata_empty_key_rejected - should panic ... ok
test test::test_metadata_isolation_between_subscriptions ... ok
test test::test_metadata_key_too_long_rejected - should panic ... ok
test test::test_metadata_empty_list_for_new_subscription ... ok
test test::test_metadata_list_keys ... ok
test test::test_metadata_on_paused_subscription_allowed ... ok
test test::test_metadata_operations_on_nonexistent_subscription - should panic ... ok
test test::test_metadata_key_max_length_boundary_ok ... ok
test test::test_metadata_merchant_can_delete ... ok
test test::test_metadata_unauthorized_actor_rejected - should panic ... ok
test test::test_metadata_set_and_get ... ok
test test::test_metadata_merchant_can_set ... ok
test test::test_metadata_key_limit_enforced - should panic ... ok
test test::test_metadata_set_on_cancelled_subscription_rejected - should panic ... ok
test test::test_metadata_value_too_long_rejected - should panic ... ok
test test::test_metadata_update_at_limit_succeeds ... ok
test test::test_metadata_value_max_length_boundary_ok ... ok
test test::test_migrate_subscription_rejects_cross_template_family ... ok
test test::test_metadata_update_existing_key ... ok
test test::test_min_topup_above_threshold ... ok
test test::test_min_topup_below_threshold ... ok
test test::test_migrate_subscription_requires_plan_origin ... ok
test test::test_migrate_subscription_to_new_plan_version ... ok
test test::test_new_admin_gains_access_after_rotation ... ok
test test::test_min_topup_exactly_at_threshold ... ok
test test::test_multiple_admin_rotations ... ok
test test::test_multiple_pause_resume_cycles ... ok
test test::test_offset_pagination_ordering_newest_first ... ok
test test::test_offset_pagination_ordering_oldest_first ... ok
test test::test_next_charge_info ... ok
test test::test_old_admin_loses_access_after_rotation ... ok
test test::test_oneoff_does_not_update_last_payment_timestamp ... ok
test test::test_oneoff_event_emitted ... ok
test test::test_oneoff_exceeds_balance_rejected ... ok
test test::test_next_charge_info_cross_check_status_gating ... FAILED
test test::test_oneoff_blocked_by_emergency_stop ... ok
test test::test_oneoff_exact_balance_succeeds ... ok
test test::test_oneoff_negative_amount_rejected ... ok
test test::test_oneoff_lifetime_cap_boundary ... FAILED
test test::test_oneoff_statement_kind_consistency ... ok
test test::test_oneoff_partial_balance_boundary ... ok
test test::test_oneoff_on_cancelled_subscription_rejected ... ok
test test::test_oneoff_on_paused_subscription_succeeds ... ok
test test::test_oracle_disabled_charge_uses_subscription_amount_directly ... ok
test test::test_oracle_enabled_charge_uses_quote_conversion ... ok
test test::test_oneoff_zero_amount_rejected ... ok
test test::test_oracle_enabled_no_address_stored_returns_not_configured ... ok
test test::test_oracle_error_does_not_mutate_balances ... ok
test test::test_oneoff_unauthorized_merchant_rejected ... ok
test test::test_oracle_negative_price_rejected ... ok
test test::test_oracle_price_exactly_at_max_age_boundary_accepted ... ok
test test::test_oracle_zero_price_rejected ... ok
test test::test_oracle_price_one_second_past_max_age_rejected ... ok
test test::test_partial_refund_debits_prepaid_and_transfers_tokens ... ok
test test::test_oracle_zero_timestamp_price_unavailable ... ok
test test::test_partial_refund_after_cancellation_succeeds ... ok
test test::test_partial_refund_emits_event ... ok
test test::test_partial_refund_cumulative_exact_drain_then_over_refund_fails ... ok
test test::test_oracle_stale_quote_rejected ... ok
test test::test_batch_charge_high_volume_list_matches_single_path_semantics ... ok
test test::test_pause_cancel_resume_blocked ... ok
test test::test_partial_refund_full_balance_as_partial_succeeds ... ok
test test::test_partial_refund_repeated_debits_are_cumulative ... ok
test test::test_pause_subscription_from_active ... ok
test test::test_pause_cancel_withdraw_flow ... ok
test test::test_pause_subscription_from_cancelled_should_fail - should panic ... ok
test test::test_pause_during_grace_period ... ok
test test::test_partial_refund_rejects_invalid_amounts_and_auth ... ok
test test::test_plan_max_concurrent_allows_new_after_cancellation ... ok
test test::test_pause_subscription_from_paused_is_idempotent ... ok
test test::test_plan_max_concurrent_subscriptions_enforced_per_subscriber ... ok
test test::test_rapid_state_transitions ... ok
test test::test_recover_stranded_funds ... FAILED
test test::test_plan_template_inherits_lifetime_cap ... ok
test test::test_plan_template_no_cap_creates_uncapped_sub ... ok
test test::test_recover_stranded_funds_unauthorized_after_rotation ... ok
test test::test_pause_with_varying_intervals ... ok
test test::test_remove_from_blocklist_requires_admin_and_existing_entry ... ok
test test::test_replay_charge_same_period - should panic ... ok
test test::test_recover_stranded_funds_unauthorized_before_rotation ... ok
test test::test_resume_subscription_from_cancelled_should_fail - should panic ... ok
test test::test_resume_subscription_from_paused ... ok
test test::test_resume_from_insufficient_balance_succeeds ... ok
test test::test_rotate_admin ... ok
test test::test_rotate_admin_to_contract_address_rejected ... ok
test test::test_rotate_admin_successful ... ok
test test::test_rotate_admin_to_same_address_rejected ... ok
test test::test_set_billing_retention_non_admin_rejected ... ok
test test::test_rotate_admin_unauthorized ... ok
test test::test_resume_and_charge_immediately ... ok
test test::test_set_min_topup_unauthorized_after_rotation ... ok
test test::test_rotate_admin_allowed_during_emergency_stop ... ok
test test::test_set_min_topup_unauthorized_before_rotation ... ok
test test::test_set_oracle_config_disabled_with_no_address_succeeds ... ok
test test::test_set_oracle_config_disabled_with_zero_max_age_succeeds ... ok
test test::test_state_machine_property_random_transition_sequences_only_allow_legal_targets ... ok
test test::test_set_oracle_config_enabled_with_zero_max_age_fails ... ok
test test::test_set_oracle_config_enabled_without_address_fails ... ok
test test::test_state_machine_property_transition_matrix_matches_manual_rules ... ok
test test::test_subscription_struct_status_field ... ok
test test::test_subscription_struct_with_lifetime_cap ... ok
test test::test_subscription_limit_reached - should panic ... ok
test test::test_subscriber_credit_limit_blocks_new_subscription_creation ... ok
test test::test_validate_active_transitions ... ok
test test::test_validate_cancelled_transitions_all_blocked ... ok
test test::test_timestamp_preserved_across_pause_resume ... ok
test test::test_validate_insufficient_balance_transitions ... ok
test test::test_subscriber_credit_limit_blocks_topup_when_exposure_exceeds_limit ... ok
test test::test_validate_paused_transitions ... ok
test test::test_validate_status_transition_same_status_is_allowed ... ok
test test::test_update_plan_template_creates_new_version_and_preserves_old ... ok
test test::test_shared_merchant_multiple_states ... ok
test test::test_withdraw_merchant_funds_reduces_default_bucket_and_emits_event ... ok
test test::test_withdraw_merchant_funds_rejects_empty_bucket ... ok
test test::test_withdraw_merchant_token_funds_checks_vault_balance_before_transfer ... ok
test test::test_withdraw_merchant_funds_rejects_overdraw ... ok
test test::test_withdraw_merchant_token_funds_rejects_empty_bucket ... ok
test test::test_withdraw_subscriber_funds_exactly_once ... FAILED
test test::test_withdraw_merchant_token_funds_only_debits_requested_bucket_and_emits_event ... ok
test test::test_withdraw_subscriber_funds ... FAILED
test test::test_withdraw_zero_balance_fails ... FAILED
test test::test_withdraw_subscriber_funds_after_cancel ... ok
test test_auth_fuzz::test_identity_collision_subscriber_is_merchant ... ok
test test_deterministic_charging::test_boundary_period_transitions ... ok
test test_auth_fuzz::test_admin_rotation_edge_case ... ok
test test_deterministic_charging::test_idempotent_failure_codes ... ok
test test_deterministic_charging::test_same_timestamp_repeated_calls ... ok
test test_deterministic_charging::test_usage_charge_determinism ... ok
test test_deterministic_charging::test_interval_charge_determinism ... ok
test test_emergency_stop_lifetime_caps::test_emergency_stop_blocks_batch_charge - should panic ... ok
test test_emergency_stop_lifetime_caps::test_emergency_stop_blocks_all_critical_create_deposit_charge_paths ... ok
test test_deterministic_charging::test_usage_charging_parity ... ok
test test_emergency_stop_lifetime_caps::test_emergency_stop_toggle_is_idempotent_and_emits_events_once_per_transition ... ok
test test_emergency_stop_lifetime_caps::test_batch_charge_resumes_normally_after_emergency_stop_disabled ... ok
test test_emergency_stop_lifetime_caps::test_lifetime_cap_oneoff_exact_hit_auto_cancels_and_emits_single_cap_event ... FAILED
test test_emergency_stop_lifetime_caps::test_lifetime_cap_usage_exact_hit_charges_then_auto_cancels ... ok
test test_emergency_stop_lifetime_caps::test_lifetime_cap_interval_overrun_cancels_without_debiting_or_crediting ... ok
test test_emergency_stop_lifetime_caps::test_lifetime_cap_usage_overrun_cancels_without_financial_side_effects ... ok
test test_expiration::test_deposit_rejected_when_expired ... FAILED
test test_expiration::test_cleanup_and_archival ... FAILED
test test::test_batch_charge_large_batch ... ok
test test_governance::test_merchant_config_governance_enforced ... ok
test test_governance::test_unauthorized_merchant_config_update - should panic ... ok
test test_expiration::test_expiration_vs_cancellation ... FAILED
test test_expiration::test_expiration_timing_and_charging ... ok
test test_insufficient_balance::cancel_from_insufficient_balance_succeeds ... ok
test test_insufficient_balance::repeated_failed_charges_preserve_financial_state ... ok
test test_multi_actor::test_multi_actor_balances_and_statuses_after_setup ... ok
test test_insufficient_balance::resume_from_underfunded_state_requires_sufficient_topup ... ok
test test_multi_actor::test_multi_actor_batch_charge ... ok
test test_multi_actor::test_multi_actor_pause_and_resume_subset ... ok
test test_multi_actor::test_multi_actor_view_helpers ... ok
test test_recovery::test_recovery_amount_validation ... ok
test test_multi_actor::test_multi_actor_cancel_isolated ... ok
test test_recovery::test_recovery_unauthorized ... FAILED
test test_recovery::test_recovery_success_all_reasons ... ok
test test_safe_math_regression::test_safe_add_boundaries ... ok
test test_recovery::test_recovery_replay_protection ... ok
test test_safe_math_regression::test_safe_div_boundaries ... ok
test test_safe_math_regression::test_safe_mul_boundaries ... ok
test test_recovery::test_state_consistency ... ok
test test_safe_math_regression::test_safe_sub_boundaries ... ok
test test_multi_actor::test_multi_actor_mixed_charges ... ok
test test_refactor_check::test_new_setup_and_fixtures ... ok
test test_safe_math_regression::test_safe_pow_boundaries ... ok
test test_safe_math_regression::test_sequence_increment_regression ... ok
test test_security::test_deposit_negative_amount_fails ... ok
test test_security::test_deposit_funds_state_committed_before_transfer ... ok
test test_security::test_pause_subscription_unauthorized_stranger - should panic ... ok
test test_security::test_charge_amount_greater_than_balance_fails ... ok
test test_security::test_chained_charge_and_cancel_preserves_balance ... ok
test test_security::test_replay_protection_on_batch_charge ... ok
test test_security::test_rotate_admin_unauthorized - should panic ... ok
test test_security::test_replay_protection_same_timestamp_rejected ... ok
test test_security::test_safe_add_overflow_returns_error ... ok
test test_security::test_safe_sub_underflow_returns_error ... ok
test test_security::test_reentrancy_lock_prevents_recursive_calls ... ok
test test_usage_limits::test_exact_lifetime_cap_boundary ... ok
test test_usage_limits::test_burst_usage_attempts ... ok
test test_usage_limits::test_replay_attacks ... ok
test test_usage_limits::test_rate_limit_violations ... ok
test test_usage_limits::test_exact_prepaid_balance_usage ... ok
test test_usage_limits::test_zero_or_negative_usage ... ok
test test_usage_limits::test_usage_disabled ... ok
test test_usage_limits::test_valid_usage_charging ... ok
test test_usage_limits::test_usage_cap_enforcement ... ok
test test_auth_fuzz::test_authorization_matrix_fuzz ... ok
test test::test_state_machine_property_lifecycle_entrypoints_follow_manual_model ... ok
test test::test_state_machine_property_charge_failures_and_recovery_paths_obey_rules has been running for over 60 seconds
test test::test_state_machine_property_charge_failures_and_recovery_paths_obey_rules ... ok
failures:
---- test::test_admin_rotation_affects_recovery_operations stdout ----
thread 'test::test_admin_rotation_affects_recovery_operations' (25560) panicked at C:\Users\ADMIN\.cargo\registry\src\index.crates.io-1949cf8c6b5b557f\soroban-env-host-22.1.3\src\host.rs:847:9:
HostError: Error(Contract, #1003)
Event log (newest first):
0: [Diagnostic Event] topics:[error, Error(Contract, #1003)], data:"escalating error to panic"
1: [Diagnostic Event] topics:[error, Error(Contract, #1003)], data:["contract call failed", recover_stranded_funds, [CAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFCT4, CBUSYNQKASUYFWYC3M2GUEDMX4AIVWPALDBYJPNK6554BREHTGZ2IUNF, CAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAK3IM, 1000000, "recovery-1", 4]]
2: [Failed Diagnostic Event (not emitted)] contract:CAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAD2KM, topics:[error, Error(Contract, #1003)], data:"escalating Ok(ScErrorType::Contract) frame-exit to Err"
3: [Failed Diagnostic Event (not emitted)] contract:CAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAD2KM, topics:[fn_return, recover_stranded_funds], data:Error(Contract, #1003)
4: [Failed Diagnostic Event (not emitted)] contract:CBUSYNQKASUYFWYC3M2GUEDMX4AIVWPALDBYJPNK6554BREHTGZ2IUNF, topics:[fn_return, balance], data:0
5: [Failed Diagnostic Event (not emitted)] contract:CAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAD2KM, topics:[fn_call, CBUSYNQKASUYFWYC3M2GUEDMX4AIVWPALDBYJPNK6554BREHTGZ2IUNF, balance], data:CAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAD2KM
6: [Diagnostic Event] topics:[fn_call, CAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAD2KM, recover_stranded_funds], data:[CAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFCT4, CBUSYNQKASUYFWYC3M2GUEDMX4AIVWPALDBYJPNK6554BREHTGZ2IUNF, CAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAK3IM, 1000000, "recovery-1", 4]
Writing test snapshot file for test "test::test_admin_rotation_affects_recovery_operations" to "test_snapshots\\test\\test_admin_rotation_affects_recovery_operations.1.json".
---- test::test_all_admin_operations_after_rotation stdout ----
thread 'test::test_all_admin_operations_after_rotation' (15852) panicked at C:\Users\ADMIN\.cargo\registry\src\index.crates.io-1949cf8c6b5b557f\soroban-env-host-22.1.3\src\host.rs:847:9:
HostError: Error(Contract, #1003)
Event log (newest first):
0: [Diagnostic Event] topics:[error, Error(Contract, #1003)], data:"escalating error to panic"
1: [Diagnostic Event] topics:[error, Error(Contract, #1003)], data:["contract call failed", recover_stranded_funds, [CAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAITA4, CBUSYNQKASUYFWYC3M2GUEDMX4AIVWPALDBYJPNK6554BREHTGZ2IUNF, CAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAMDR4, 1000000, "recovery-2", 4]]
2: [Failed Diagnostic Event (not emitted)] contract:CAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAD2KM, topics:[error, Error(Contract, #1003)], data:"escalating Ok(ScErrorType::Contract) frame-exit to Err"
3: [Failed Diagnostic Event (not emitted)] contract:CAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAD2KM, topics:[fn_return, recover_stranded_funds], data:Error(Contract, #1003)
4: [Failed Diagnostic Event (not emitted)] contract:CBUSYNQKASUYFWYC3M2GUEDMX4AIVWPALDBYJPNK6554BREHTGZ2IUNF, topics:[fn_return, balance], data:0
5: [Failed Diagnostic Event (not emitted)] contract:CAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAD2KM, topics:[fn_call, CBUSYNQKASUYFWYC3M2GUEDMX4AIVWPALDBYJPNK6554BREHTGZ2IUNF, balance], data:CAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAD2KM
6: [Diagnostic Event] topics:[fn_call, CAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAD2KM, recover_stranded_funds], data:[CAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAITA4, CBUSYNQKASUYFWYC3M2GUEDMX4AIVWPALDBYJPNK6554BREHTGZ2IUNF, CAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAMDR4, 1000000, "recovery-2", 4]
Writing test snapshot file for test "test::test_all_admin_operations_after_rotation" to "test_snapshots\\test\\test_all_admin_operations_after_rotation.1.json".
---- test::test_billing_lifecycle_delayed_charge_and_min_topup_progression stdout ----
thread 'test::test_billing_lifecycle_delayed_charge_and_min_topup_progression' (30008) panicked at contracts\subscription_vault\src\test.rs:3633:5:
assertion `left == right` failed
left: 5185000
right: 5185077
Writing test snapshot file for test "test::test_billing_lifecycle_delayed_charge_and_min_topup_progression" to "test_snapshots\\test\\test_billing_lifecycle_delayed_charge_and_min_topup_progression.1.json".
---- test::test_compute_next_charge_info_insufficient_balance stdout ----
thread 'test::test_compute_next_charge_info_insufficient_balance' (11044) panicked at contracts\subscription_vault\src\test.rs:2260:5:
assertion failed: !info.is_charge_expected
---- test::test_deposit_funds_unauthorized stdout ----
thread 'test::test_deposit_funds_unauthorized' (12336) panicked at C:\Users\ADMIN\.cargo\registry\src\index.crates.io-1949cf8c6b5b557f\soroban-env-host-22.1.3\src\host.rs:847:9:
HostError: Error(Contract, #10)
Event log (newest first):
0: [Diagnostic Event] topics:[error, Error(Contract, #10)], data:"escalating error to panic"
1: [Diagnostic Event] topics:[error, Error(Contract, #10)], data:["contract call failed", deposit_funds, [0, CAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAITA4, 5000000]]
2: [Failed Diagnostic Event (not emitted)] contract:CAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAD2KM, topics:[error, Error(Contract, #10)], data:"caught error from function"
3: [Failed Diagnostic Event (not emitted)] contract:CAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAD2KM, topics:[error, Error(Contract, #10)], data:"escalating error to panic"
4: [Failed Diagnostic Event (not emitted)] contract:CAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAD2KM, topics:[error, Error(Contract, #10)], data:["contract call failed", transfer, [CAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAITA4, CAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAD2KM, 5000000]]
5: [Failed Diagnostic Event (not emitted)] contract:CBUSYNQKASUYFWYC3M2GUEDMX4AIVWPALDBYJPNK6554BREHTGZ2IUNF, topics:[error, Error(Contract, #10)], data:["zero balance is not sufficient to spend", 5000000]
6: [Failed Diagnostic Event (not emitted)] contract:CAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAD2KM, topics:[fn_call, CBUSYNQKASUYFWYC3M2GUEDMX4AIVWPALDBYJPNK6554BREHTGZ2IUNF, transfer], data:[CAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAITA4, CAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAD2KM, 5000000]
7: [Diagnostic Event] topics:[fn_call, CAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAD2KM, deposit_funds], data:[0, CAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAITA4, 5000000]
Writing test snapshot file for test "test::test_deposit_funds_unauthorized" to "test_snapshots\\test\\test_deposit_funds_unauthorized.1.json".
note: panic did not contain expected string
panic message: "HostError: Error(Contract, #10)\n\nEvent log (newest first):\n 0: [Diagnostic Event] topics:[error, Error(Contract, #10)], data:\"escalating error to panic\"\n 1: [Diagnostic Event] topics:[error, Error(Contract, #10)], data:[\"contract call failed\", deposit_funds, [0, CAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAITA4, 5000000]]\n 2: [Failed Diagnostic Event (not emitted)] contract:CAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAD2KM, topics:[error, Error(Contract, #10)], data:\"caught error from function\"\n 3: [Failed Diagnostic Event (not emitted)] contract:CAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAD2KM, topics:[error, Error(Contract, #10)], data:\"escalating error to panic\"\n 4: [Failed Diagnostic Event (not emitted)] contract:CAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAD2KM, topics:[error, Error(Contract, #10)], data:[\"contract call failed\", transfer, [CAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAITA4, CAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAD2KM, 5000000]]\n 5: [Failed Diagnostic Event (not emitted)] contract:CBUSYNQKASUYFWYC3M2GUEDMX4AIVWPALDBYJPNK6554BREHTGZ2IUNF, topics:[error, Error(Contract, #10)], data:[\"zero balance is not sufficient to spend\", 5000000]\n 6: [Failed Diagnostic Event (not emitted)] contract:CAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAD2KM, topics:[fn_call, CBUSYNQKASUYFWYC3M2GUEDMX4AIVWPALDBYJPNK6554BREHTGZ2IUNF, transfer], data:[CAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAITA4, CAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAD2KM, 5000000]\n 7: [Diagnostic Event] topics:[fn_call, CAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAD2KM, deposit_funds], data:[0, CAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAITA4, 5000000]\n"
expected substring: "Error(Contract, #403)"
---- test::test_next_charge_info_cross_check_status_gating stdout ----
thread 'test::test_next_charge_info_cross_check_status_gating' (16528) panicked at contracts\subscription_vault\src\test.rs:2283:5:
assertion `left == right` failed
left: Err(Ok(NotActive))
right: Err(Ok(InsufficientBalance))
Writing test snapshot file for test "test::test_next_charge_info_cross_check_status_gating" to "test_snapshots\\test\\test_next_charge_info_cross_check_status_gating.1.json".
---- test::test_oneoff_lifetime_cap_boundary stdout ----
thread 'test::test_oneoff_lifetime_cap_boundary' (1084) panicked at contracts\subscription_vault\src\test.rs:8021:5:
assertion `left == right` failed
left: Err(Ok(NotActive))
right: Err(Ok(LifetimeCapReached))
Writing test snapshot file for test "test::test_oneoff_lifetime_cap_boundary" to "test_snapshots\\test\\test_oneoff_lifetime_cap_boundary.1.json".
---- test::test_recover_stranded_funds stdout ----
thread 'test::test_recover_stranded_funds' (16472) panicked at C:\Users\ADMIN\.cargo\registry\src\index.crates.io-1949cf8c6b5b557f\soroban-env-host-22.1.3\src\host.rs:847:9:
HostError: Error(Contract, #1003)
Event log (newest first):
0: [Diagnostic Event] topics:[error, Error(Contract, #1003)], data:"escalating error to panic"
1: [Diagnostic Event] topics:[error, Error(Contract, #1003)], data:["contract call failed", recover_stranded_funds, [CAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFCT4, CBUSYNQKASUYFWYC3M2GUEDMX4AIVWPALDBYJPNK6554BREHTGZ2IUNF, CAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAITA4, 1000000, "test-recovery", 0]]
2: [Failed Diagnostic Event (not emitted)] contract:CAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAD2KM, topics:[error, Error(Contract, #1003)], data:"escalating Ok(ScErrorType::Contract) frame-exit to Err"
3: [Failed Diagnostic Event (not emitted)] contract:CAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAD2KM, topics:[fn_return, recover_stranded_funds], data:Error(Contract, #1003)
4: [Failed Diagnostic Event (not emitted)] contract:CBUSYNQKASUYFWYC3M2GUEDMX4AIVWPALDBYJPNK6554BREHTGZ2IUNF, topics:[fn_return, balance], data:0
5: [Failed Diagnostic Event (not emitted)] contract:CAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAD2KM, topics:[fn_call, CBUSYNQKASUYFWYC3M2GUEDMX4AIVWPALDBYJPNK6554BREHTGZ2IUNF, balance], data:CAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAD2KM
6: [Diagnostic Event] topics:[fn_call, CAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAD2KM, recover_stranded_funds], data:[CAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFCT4, CBUSYNQKASUYFWYC3M2GUEDMX4AIVWPALDBYJPNK6554BREHTGZ2IUNF, CAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAITA4, 1000000, "test-recovery", 0]
Writing test snapshot file for test "test::test_recover_stranded_funds" to "test_snapshots\\test\\test_recover_stranded_funds.1.json".
---- test::test_withdraw_subscriber_funds_exactly_once stdout ----
thread 'test::test_withdraw_subscriber_funds_exactly_once' (27544) panicked at C:\Users\ADMIN\.cargo\registry\src\index.crates.io-1949cf8c6b5b557f\soroban-env-host-22.1.3\src\host.rs:847:9:
HostError: Error(Contract, #1006)
Event log (newest first):
0: [Diagnostic Event] topics:[error, Error(Contract, #1006)], data:"escalating error to panic"
1: [Diagnostic Event] topics:[error, Error(Contract, #1006)], data:["contract call failed", withdraw_subscriber_funds, [0, CAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAITA4]]
2: [Failed Diagnostic Event (not emitted)] contract:CAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAD2KM, topics:[error, Error(Contract, #1006)], data:"escalating Ok(ScErrorType::Contract) frame-exit to Err"
3: [Failed Diagnostic Event (not emitted)] contract:CAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAD2KM, topics:[fn_return, withdraw_subscriber_funds], data:Error(Contract, #1006)
4: [Diagnostic Event] topics:[fn_call, CAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAD2KM, withdraw_subscriber_funds], data:[0, CAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAITA4]
Writing test snapshot file for test "test::test_withdraw_subscriber_funds_exactly_once" to "test_snapshots\\test\\test_withdraw_subscriber_funds_exactly_once.1.json".
---- test::test_withdraw_subscriber_funds stdout ----
thread 'test::test_withdraw_subscriber_funds' (28968) panicked at C:\Users\ADMIN\.cargo\registry\src\index.crates.io-1949cf8c6b5b557f\soroban-env-host-22.1.3\src\host.rs:847:9:
HostError: Error(Contract, #402)
Event log (newest first):
0: [Diagnostic Event] topics:[error, Error(Contract, #402)], data:"escalating error to panic"
1: [Diagnostic Event] topics:[error, Error(Contract, #402)], data:["contract call failed", deposit_funds, [0, CAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAITA4, 5000]]
2: [Failed Diagnostic Event (not emitted)] contract:CAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAD2KM, topics:[error, Error(Contract, #402)], data:"escalating Ok(ScErrorType::Contract) frame-exit to Err"
3: [Failed Diagnostic Event (not emitted)] contract:CAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAD2KM, topics:[fn_return, deposit_funds], data:Error(Contract, #402)
4: [Diagnostic Event] topics:[fn_call, CAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAD2KM, deposit_funds], data:[0, CAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAITA4, 5000]
Writing test snapshot file for test "test::test_withdraw_subscriber_funds" to "test_snapshots\\test\\test_withdraw_subscriber_funds.1.json".
---- test::test_withdraw_zero_balance_fails stdout ----
thread 'test::test_withdraw_zero_balance_fails' (27312) panicked at contracts\subscription_vault\src\test.rs:3161:5:
assertion `left == right` failed
left: Err(Ok(InvalidStatusTransition))
right: Err(Ok(InvalidAmount))
Writing test snapshot file for test "test::test_withdraw_zero_balance_fails" to "test_snapshots\\test\\test_withdraw_zero_balance_fails.1.json".
---- test_emergency_stop_lifetime_caps::test_lifetime_cap_oneoff_exact_hit_auto_cancels_and_emits_single_cap_event stdout ----
thread 'test_emergency_stop_lifetime_caps::test_lifetime_cap_oneoff_exact_hit_auto_cancels_and_emits_single_cap_event' (14064) panicked at contracts\subscription_vault\src\test_emergency_stop_lifetime_caps.rs:354:5:
assertion `left == right` failed
left: 0
right: 1
Writing test snapshot file for test "test_emergency_stop_lifetime_caps::test_lifetime_cap_oneoff_exact_hit_auto_cancels_and_emits_single_cap_event" to "test_snapshots\\test_emergency_stop_lifetime_caps\\test_lifetime_cap_oneoff_exact_hit_auto_cancels_and_emits_single_cap_event.1.json".
---- test_expiration::test_deposit_rejected_when_expired stdout ----
thread 'test_expiration::test_deposit_rejected_when_expired' (30516) panicked at C:\Users\ADMIN\.cargo\registry\src\index.crates.io-1949cf8c6b5b557f\soroban-env-host-22.1.3\src\host.rs:847:9:
HostError: Error(Contract, #1015)
Event log (newest first):
0: [Diagnostic Event] topics:[error, Error(Contract, #1015)], data:"escalating error to panic"
1: [Diagnostic Event] topics:[error, Error(Contract, #1015)], data:["contract call failed", create_subscription_with_token, [CAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAK3IM, CAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAMDR4, CCABDO7UZXYE4W6GVSEGSNNZTKSLFQGKXXQTH6OX7M7GKZ4Z6CUJNGZN, 100, 10, false, Void, 1050]]
2: [Failed Diagnostic Event (not emitted)] contract:CAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFCT4, topics:[error, Error(Contract, #1015)], data:"escalating Ok(ScErrorType::Contract) frame-exit to Err"
3: [Failed Diagnostic Event (not emitted)] contract:CAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFCT4, topics:[fn_return, create_subscription_with_token], data:Error(Contract, #1015)
4: [Diagnostic Event] topics:[fn_call, CAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFCT4, create_subscription_with_token], data:[CAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAK3IM, CAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAMDR4, CCABDO7UZXYE4W6GVSEGSNNZTKSLFQGKXXQTH6OX7M7GKZ4Z6CUJNGZN, 100, 10, false, Void, 1050]
Writing test snapshot file for test "test_expiration::test_deposit_rejected_when_expired" to "test_snapshots\\test_expiration\\test_deposit_rejected_when_expired.1.json".
---- test_expiration::test_cleanup_and_archival stdout ----
thread 'test_expiration::test_cleanup_and_archival' (30552) panicked at C:\Users\ADMIN\.cargo\registry\src\index.crates.io-1949cf8c6b5b557f\soroban-env-host-22.1.3\src\host.rs:847:9:
HostError: Error(Contract, #1015)
Event log (newest first):
0: [Diagnostic Event] topics:[error, Error(Contract, #1015)], data:"escalating error to panic"
1: [Diagnostic Event] topics:[error, Error(Contract, #1015)], data:["contract call failed", create_subscription_with_token, [CAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAK3IM, CAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAMDR4, CCABDO7UZXYE4W6GVSEGSNNZTKSLFQGKXXQTH6OX7M7GKZ4Z6CUJNGZN, 100, 10, false, Void, 1050]]
2: [Failed Diagnostic Event (not emitted)] contract:CAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFCT4, topics:[error, Error(Contract, #1015)], data:"escalating Ok(ScErrorType::Contract) frame-exit to Err"
3: [Failed Diagnostic Event (not emitted)] contract:CAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFCT4, topics:[fn_return, create_subscription_with_token], data:Error(Contract, #1015)
4: [Diagnostic Event] topics:[fn_call, CAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFCT4, create_subscription_with_token], data:[CAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAK3IM, CAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAMDR4, CCABDO7UZXYE4W6GVSEGSNNZTKSLFQGKXXQTH6OX7M7GKZ4Z6CUJNGZN, 100, 10, false, Void, 1050]
Writing test snapshot file for test "test_expiration::test_cleanup_and_archival" to "test_snapshots\\test_expiration\\test_cleanup_and_archival.1.json".
---- test_expiration::test_expiration_vs_cancellation stdout ----
thread 'test_expiration::test_expiration_vs_cancellation' (28160) panicked at C:\Users\ADMIN\.cargo\registry\src\index.crates.io-1949cf8c6b5b557f\soroban-env-host-22.1.3\src\host.rs:847:9:
HostError: Error(Contract, #1015)
Event log (newest first):
0: [Diagnostic Event] topics:[error, Error(Contract, #1015)], data:"escalating error to panic"
1: [Diagnostic Event] topics:[error, Error(Contract, #1015)], data:["contract call failed", create_subscription_with_token, [CAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAK3IM, CAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAMDR4, CCABDO7UZXYE4W6GVSEGSNNZTKSLFQGKXXQTH6OX7M7GKZ4Z6CUJNGZN, 100, 10, false, Void, 1050]]
2: [Failed Diagnostic Event (not emitted)] contract:CAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFCT4, topics:[error, Error(Contract, #1015)], data:"escalating Ok(ScErrorType::Contract) frame-exit to Err"
3: [Failed Diagnostic Event (not emitted)] contract:CAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFCT4, topics:[fn_return, create_subscription_with_token], data:Error(Contract, #1015)
4: [Diagnostic Event] topics:[fn_call, CAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFCT4, create_subscription_with_token], data:[CAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAK3IM, CAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAMDR4, CCABDO7UZXYE4W6GVSEGSNNZTKSLFQGKXXQTH6OX7M7GKZ4Z6CUJNGZN, 100, 10, false, Void, 1050]
Writing test snapshot file for test "test_expiration::test_expiration_vs_cancellation" to "test_snapshots\\test_expiration\\test_expiration_vs_cancellation.1.json".
---- test_recovery::test_recovery_unauthorized stdout ----
thread 'test_recovery::test_recovery_unauthorized' (25088) panicked at contracts\subscription_vault\src\test_recovery.rs:82:5:
assertion `left == right` failed
left: Err(Ok(Unauthorized))
right: Err(Ok(Forbidden))
Writing test snapshot file for test "test_recovery::test_recovery_unauthorized" to "test_snapshots\\test_recovery\\test_recovery_unauthorized.1.json".
failures:
test::test_admin_rotation_affects_recovery_operations
test::test_all_admin_operations_after_rotation
test::test_billing_lifecycle_delayed_charge_and_min_topup_progression
test::test_compute_next_charge_info_insufficient_balance
test::test_deposit_funds_unauthorized
test::test_next_charge_info_cross_check_status_gating
test::test_oneoff_lifetime_cap_boundary
test::test_recover_stranded_funds
test::test_withdraw_subscriber_funds
test::test_withdraw_subscriber_funds_exactly_once
test::test_withdraw_zero_balance_fails
test_emergency_stop_lifetime_caps::test_lifetime_cap_oneoff_exact_hit_auto_cancels_and_emits_single_cap_event
test_expiration::test_cleanup_and_archival
test_expiration::test_deposit_rejected_when_expired
test_expiration::test_expiration_vs_cancellation
error: test failed, to rerun pass `-p subscription_vault --lib`
test_recovery::test_recovery_unauthorized
test result: FAILED. 327 passed; 16 failed; 0 ignored; 0 measured; 0 filtered out; finished in 73.83s