Keep quota refusal test independent of Debug success types
This commit is contained in:
@@ -229,7 +229,7 @@ fn nested_inventory_and_prepaid_projection_quota() {
|
||||
(29, "Source8 projection quota underflow."),
|
||||
(31, "Source8 projection quota leftover."),
|
||||
] {
|
||||
let error = language::edit_positions_from_tokens_with_producers(
|
||||
let error = match language::edit_positions_from_tokens_with_producers(
|
||||
file.source,
|
||||
&file.ordinary,
|
||||
|at| lexeme(file.tokens[at]),
|
||||
@@ -237,8 +237,10 @@ fn nested_inventory_and_prepaid_projection_quota() {
|
||||
None,
|
||||
Some(quota),
|
||||
|_, _| Ok(()),
|
||||
)
|
||||
.unwrap_err();
|
||||
) {
|
||||
Err(error) => error,
|
||||
Ok(_) => panic!("injected projection quota must refuse"),
|
||||
};
|
||||
assert_eq!(error.message, message);
|
||||
}
|
||||
assert_eq!(syntax.budget.producer_entries(), Some(89));
|
||||
|
||||
Reference in New Issue
Block a user