@@ -409,7 +409,7 @@ Test( oracle, upd_price ) {
409409 .data_len = sizeof ( idata ),
410410 .program_id = & p_id
411411 };
412- cr_assert ( SUCCESS == dispatch ( & prm , acc ) );
412+ cr_assert ( SUCCESSFULLY_UPDATED_AGGREGATE == dispatch ( & prm , acc ) );
413413 cr_assert ( sptr -> comp_ [0 ].latest_ .price_ == 42L );
414414 cr_assert ( sptr -> comp_ [0 ].latest_ .conf_ == 2L );
415415 cr_assert ( sptr -> comp_ [0 ].latest_ .pub_slot_ == 1 );
@@ -426,7 +426,7 @@ Test( oracle, upd_price ) {
426426 idata .price_ = 81 ;
427427 idata .pub_slot_ = 2 ;
428428 cvar .slot_ = 3 ;
429- cr_assert ( SUCCESS == dispatch ( & prm , acc ) );
429+ cr_assert ( SUCCESSFULLY_UPDATED_AGGREGATE == dispatch ( & prm , acc ) );
430430 cr_assert ( sptr -> comp_ [0 ].latest_ .price_ == 81L );
431431 cr_assert ( sptr -> comp_ [0 ].agg_ .price_ == 42L );
432432 cr_assert ( sptr -> comp_ [0 ].latest_ .pub_slot_ == 2 );
@@ -436,7 +436,7 @@ Test( oracle, upd_price ) {
436436 // next price doesnt change but slot does
437437 cvar .slot_ = 4 ;
438438 idata .pub_slot_ = 3 ;
439- cr_assert ( SUCCESS == dispatch ( & prm , acc ) );
439+ cr_assert ( SUCCESSFULLY_UPDATED_AGGREGATE == dispatch ( & prm , acc ) );
440440 cr_assert ( sptr -> comp_ [0 ].latest_ .price_ == 81L );
441441 cr_assert ( sptr -> comp_ [0 ].agg_ .price_ == 81L );
442442 cr_assert ( sptr -> comp_ [0 ].latest_ .pub_slot_ == 3 );
@@ -446,7 +446,7 @@ Test( oracle, upd_price ) {
446446 // next price doesnt change and neither does aggregate but slot does
447447 idata .pub_slot_ = 4 ;
448448 cvar .slot_ = 5 ;
449- cr_assert ( SUCCESS == dispatch ( & prm , acc ) );
449+ cr_assert ( SUCCESSFULLY_UPDATED_AGGREGATE == dispatch ( & prm , acc ) );
450450 cr_assert ( sptr -> comp_ [0 ].latest_ .price_ == 81L );
451451 cr_assert ( sptr -> comp_ [0 ].agg_ .price_ == 81L );
452452 cr_assert ( sptr -> comp_ [0 ].latest_ .pub_slot_ == 4 );
@@ -466,7 +466,7 @@ Test( oracle, upd_price ) {
466466 cvar .slot_ = 6 ;
467467 idata .price_ = 50 ;
468468 idata .conf_ = 6 ;
469- cr_assert ( SUCCESS == dispatch ( & prm , acc ) );
469+ cr_assert ( SUCCESSFULLY_UPDATED_AGGREGATE == dispatch ( & prm , acc ) );
470470 cr_assert ( sptr -> comp_ [0 ].latest_ .price_ == 50L );
471471 cr_assert ( sptr -> comp_ [0 ].latest_ .conf_ == 6L );
472472 cr_assert ( sptr -> comp_ [0 ].latest_ .status_ == PC_STATUS_UNKNOWN );
@@ -478,7 +478,7 @@ Test( oracle, upd_price ) {
478478 // Crank one more time and aggregate should be unknown
479479 idata .pub_slot_ = 6 ;
480480 cvar .slot_ = 7 ;
481- cr_assert ( SUCCESS == dispatch ( & prm , acc ) );
481+ cr_assert ( SUCCESSFULLY_UPDATED_AGGREGATE == dispatch ( & prm , acc ) );
482482 cr_assert ( sptr -> agg_ .status_ == PC_STATUS_UNKNOWN );
483483}
484484
@@ -559,7 +559,7 @@ Test( oracle, upd_price_no_fail_on_error ) {
559559 pc_pub_key_assign ( & sptr -> comp_ [0 ].pub_ , (pc_pub_key_t * )& pkey );
560560
561561 // The update should now succeed, and have an effect.
562- cr_assert ( SUCCESS == dispatch ( & prm , acc ) );
562+ cr_assert ( SUCCESSFULLY_UPDATED_AGGREGATE == dispatch ( & prm , acc ) );
563563 cr_assert ( sptr -> comp_ [0 ].latest_ .price_ == 42L );
564564 cr_assert ( sptr -> comp_ [0 ].latest_ .conf_ == 9L );
565565 cr_assert ( sptr -> comp_ [0 ].latest_ .pub_slot_ == 1 );
0 commit comments