You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: program/rust/src/tests/test_upd_price.rs
+76Lines changed: 76 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -29,6 +29,7 @@ use {
29
29
program_error::ProgramError,
30
30
pubkey::Pubkey,
31
31
},
32
+
solana_sdk::account_info::AccountInfo,
32
33
std::mem::size_of,
33
34
};
34
35
@@ -312,6 +313,75 @@ fn test_upd_price() {
312
313
assert_eq!(price_data.prev_conf_,2);
313
314
assert_eq!(price_data.prev_timestamp_,4);
314
315
}
316
+
317
+
// add new test for multiple publishers and ensure that agg price is not updated multiple times when program upgrade happens in the same slot after the first update
0 commit comments