Skip to content

Commit 8335d5f

Browse files
committed
fix tests
1 parent ba8ad84 commit 8335d5f

File tree

2 files changed

+1
-2
lines changed

2 files changed

+1
-2
lines changed

programs/drift/src/state/user.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1407,7 +1407,6 @@ impl Order {
14071407
}
14081408
};
14091409

1410-
// if order is post only, can disregard reduce only
14111410
if !self.reduce_only {
14121411
return Ok(base_asset_amount_unfilled);
14131412
}

programs/drift/src/state/user/tests.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1540,7 +1540,7 @@ mod get_base_asset_amount_unfilled {
15401540
..Order::default()
15411541
};
15421542

1543-
assert_eq!(order.get_base_asset_amount_unfilled(Some(1)).unwrap(), 1)
1543+
assert_eq!(order.get_base_asset_amount_unfilled(Some(1)).unwrap(), 0)
15441544
}
15451545

15461546
#[test]

0 commit comments

Comments
 (0)