File tree Expand file tree Collapse file tree 1 file changed +9
-1
lines changed Expand file tree Collapse file tree 1 file changed +9
-1
lines changed Original file line number Diff line number Diff line change @@ -534,7 +534,15 @@ Test( oracle, upd_price ) {
534534 cr_assert ( sptr -> comp_ [0 ].latest_ .conf_ == 6L );
535535 cr_assert ( sptr -> comp_ [0 ].latest_ .status_ == PC_STATUS_UNKNOWN );
536536 cr_assert ( sptr -> comp_ [0 ].latest_ .pub_slot_ == 5 );
537- cr_assert ( sptr -> agg_ .pub_slot_ == 5 );
537+ cr_assert ( sptr -> agg_ .pub_slot_ == 6 );
538+ // Aggregate is still trading because it uses price from previous slot
539+ cr_assert ( sptr -> agg_ .status_ == PC_STATUS_TRADING );
540+
541+ // Crank one more time and aggregate should be unknown
542+ idata .pub_slot_ = 6 ;
543+ cvar .slot_ = 7 ;
544+ cr_assert ( SUCCESS == dispatch ( & prm , acc ) );
545+ cr_assert ( sptr -> agg_ .status_ == PC_STATUS_UNKNOWN );
538546}
539547
540548Test ( oracle , upd_price_no_fail_on_error ) {
You can’t perform that action at this time.
0 commit comments