Skip to content

Commit b34b46f

Browse files
author
Jayant Krishnamurthy
committed
fix tests???
1 parent d98b911 commit b34b46f

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

program/rust/src/tests/test_upd_price.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -209,7 +209,7 @@ fn test_upd_price() {
209209
assert_eq!(price_data.agg_.status_, PC_STATUS_TRADING);
210210
}
211211

212-
populate_instruction(&mut instruction_data, 50, 6, 5);
212+
populate_instruction(&mut instruction_data, 50, 20, 5);
213213
update_clock_slot(&mut clock_account, 6);
214214

215215
// Publishing a wide CI results in a status of unknown.
@@ -234,7 +234,7 @@ fn test_upd_price() {
234234
{
235235
let price_data = load_checked::<PriceAccount>(&price_account, PC_VERSION).unwrap();
236236
assert_eq!(price_data.comp_[0].latest_.price_, 50);
237-
assert_eq!(price_data.comp_[0].latest_.conf_, 6);
237+
assert_eq!(price_data.comp_[0].latest_.conf_, 20);
238238
assert_eq!(price_data.comp_[0].latest_.pub_slot_, 5);
239239
assert_eq!(price_data.comp_[0].latest_.status_, PC_STATUS_UNKNOWN);
240240
assert_eq!(price_data.valid_slot_, 5);

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
@@ -111,7 +111,7 @@ fn test_upd_price_no_fail_on_error_no_fail_on_error() {
111111
assert_eq!(price_data.comp_[0].latest_.price_, 42);
112112
assert_eq!(price_data.comp_[0].latest_.conf_, 9);
113113
assert_eq!(price_data.comp_[0].latest_.pub_slot_, 1);
114-
assert_eq!(price_data.comp_[0].latest_.status_, PC_STATUS_UNKNOWN);
114+
assert_eq!(price_data.comp_[0].latest_.status_, PC_STATUS_TRADING);
115115
assert_eq!(price_data.valid_slot_, 0);
116116
assert_eq!(price_data.agg_.pub_slot_, 1);
117117
assert_eq!(price_data.agg_.price_, 0);

program/rust/src/tests/test_upd_sma.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -273,7 +273,7 @@ fn test_upd_sma() {
273273
assert_eq!(price_data.time_machine.current_epoch_denominator, 3 + 1 + 1);
274274
}
275275

276-
populate_instruction(&mut instruction_data, 50, 6, 5);
276+
populate_instruction(&mut instruction_data, 50, 20, 5);
277277
update_clock_slot(&mut clock_account, 6);
278278

279279
// Publishing a wide CI results in a status of unknown.
@@ -301,7 +301,7 @@ fn test_upd_sma() {
301301
{
302302
let price_data = load_checked::<PriceAccountWrapper>(&price_account, PC_VERSION).unwrap();
303303
assert_eq!(price_data.price_data.comp_[0].latest_.price_, 50);
304-
assert_eq!(price_data.price_data.comp_[0].latest_.conf_, 6);
304+
assert_eq!(price_data.price_data.comp_[0].latest_.conf_, 20);
305305
assert_eq!(price_data.price_data.comp_[0].latest_.pub_slot_, 5);
306306
assert_eq!(
307307
price_data.price_data.comp_[0].latest_.status_,

0 commit comments

Comments
 (0)