Skip to content

Commit abe56a3

Browse files
fix(test): correct set_pf_circuit_breaker calls - remove stray env arg
The soroban test client auto-injects the env parameter, so calls should pass (portfolio_id, threshold, window) not (env, ...).
1 parent 2d61c35 commit abe56a3

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

contracts/src/test.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3148,10 +3148,10 @@ fn test_per_portfolio_circuit_breaker_config() {
31483148
let pid2 = create_portfolio_with_defaults(&env, &client, &user2, &allocations, 5, 50);
31493149

31503150
// Configure portfolio 1 with a low threshold (1%)
3151-
client.set_pf_circuit_breaker(&env, &pid1, &100, &3600);
3151+
client.set_pf_circuit_breaker(&pid1, &100, &3600);
31523152

31533153
// Configure portfolio 2 with a high threshold (10%)
3154-
client.set_pf_circuit_breaker(&env, &pid2, &1000, &3600);
3154+
client.set_pf_circuit_breaker(&pid2, &1000, &3600);
31553155

31563156
// Verify configs were set
31573157
let portfolio1 = client.get_portfolio(&pid1);

0 commit comments

Comments
 (0)