Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: comment #400

Merged
merged 4 commits into from
Apr 16, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion program/rust/src/tests/test_upd_price.rs
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ fn test_upd_price() {
assert_eq!(price_data.price_cumulative.num_down_slots, 0);
}

// add some prices for current slot - get rejected
// a publisher's component pub_slot_ has to be strictly increasing -- get rejected
populate_instruction(&mut instruction_data, 43, 2, 1);

assert_eq!(
Expand Down
2 changes: 1 addition & 1 deletion program/rust/src/tests/test_upd_price_no_fail_on_error.rs
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,7 @@ fn test_upd_price_no_fail_on_error_no_fail_on_error() {
assert_eq!(price_data.agg_.status_, PC_STATUS_TRADING);
}

// Invalid updates, such as publishing an update for the current slot,
// Invalid updates, such as publishing a price update with a pub_slot_ that's lower or equal than one that's already been published (by the same publisher),
// should still fail silently and have no effect.

// Check that the normal upd_price fails
Expand Down
Loading