File tree Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -288,11 +288,13 @@ mod test_shrine_redistribution {
288
288
let redistributed_trove2_start_health = shrine . get_trove_health (redistributed_trove2 );
289
289
shrine . redistribute (redistributed_trove1 , redistributed_trove1_health . debt, RAY_ONE . into ());
290
290
291
+ let error_margin = 10_u128 . into ();
291
292
let intermediate_protocol_owned_troves_debt : Wad = shrine . get_protocol_owned_troves_debt ();
292
- assert_eq! (
293
+ common :: assert_equalish (
293
294
intermediate_protocol_owned_troves_debt ,
294
295
before_protocol_owned_troves_debt + expected_redistributed_trove1_errors ,
295
- " wrong protocol debt #1" ,
296
+ error_margin ,
297
+ ' wrong protocol debt #1' ,
296
298
);
297
299
298
300
let before_recipient_trove_health : Health = shrine . get_trove_health (recipient_trove );
@@ -310,7 +312,6 @@ mod test_shrine_redistribution {
310
312
311
313
let after_protocol_owned_troves_debt : Wad = shrine . get_protocol_owned_troves_debt ();
312
314
313
- let error_margin = 5_u128 . into ();
314
315
common :: assert_equalish (
315
316
after_protocol_owned_troves_debt ,
316
317
intermediate_protocol_owned_troves_debt + expected_redistributed_trove2_errors ,
You can’t perform that action at this time.
0 commit comments