Skip to content

Commit 38961db

Browse files
authored
fix: comment (#400)
* fix: comment * Go * Go * Go
1 parent 65949e0 commit 38961db

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

program/rust/src/tests/test_upd_price.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@ fn test_upd_price() {
9393
assert_eq!(price_data.price_cumulative.num_down_slots, 0);
9494
}
9595

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

9999
assert_eq!(

program/rust/src/tests/test_upd_price_no_fail_on_error.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -123,7 +123,7 @@ fn test_upd_price_no_fail_on_error_no_fail_on_error() {
123123
assert_eq!(price_data.agg_.status_, PC_STATUS_TRADING);
124124
}
125125

126-
// Invalid updates, such as publishing an update for the current slot,
126+
// 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),
127127
// should still fail silently and have no effect.
128128

129129
// Check that the normal upd_price fails

0 commit comments

Comments
 (0)