@@ -4,11 +4,11 @@ mod test {
44 use crate :: test_data:: * ;
55 use crate :: PythReceiver ;
66 use alloy_primitives:: { Address , U256 } ;
7+ use mock_instant:: global:: MockClock ;
78 use motsu:: prelude:: * ;
89 use pythnet_sdk:: wire:: v1:: { AccumulatorUpdateData , Proof } ;
9- use wormhole_contract:: WormholeContract ;
10- use mock_instant:: global:: MockClock ;
1110 use std:: time:: Duration ;
11+ use wormhole_contract:: WormholeContract ;
1212 const TEST_PRICE_ID : [ u8 ; 32 ] = [
1313 0xe6 , 0x2d , 0xf6 , 0xc8 , 0xb4 , 0xa8 , 0x5f , 0xe1 , 0xa6 , 0x7d , 0xb4 , 0x4d , 0xc1 , 0x2d , 0xe5 ,
1414 0xdb , 0x33 , 0x0f , 0x7a , 0xc6 , 0x6b , 0x72 , 0xdc , 0x65 , 0x8a , 0xfe , 0xdf , 0x0f , 0x4a , 0x41 ,
@@ -81,7 +81,6 @@ mod test {
8181 let governance_chain_id = 1u16 ;
8282 let governance_emitter_address = [ 3u8 ; 32 ] ;
8383 let governance_initial_sequence = 0u64 ;
84- let data = vec ! [ ] ;
8584
8685 pyth_contract. sender ( * alice) . initialize (
8786 wormhole_contract. address ( ) ,
@@ -92,7 +91,6 @@ mod test {
9291 governance_chain_id,
9392 governance_emitter_address,
9493 governance_initial_sequence,
95- data,
9694 ) ;
9795 }
9896
@@ -193,7 +191,7 @@ mod test {
193191 wormhole_contract : Contract < WormholeContract > ,
194192 alice : Address ,
195193 ) {
196- MockClock :: set_time ( Duration :: from_secs ( 1761573860 ) ) ;
194+ MockClock :: set_time ( Duration :: from_secs ( 1761573860 ) ) ; // less than good_update2().timestamp + 1s
197195 pyth_wormhole_init ( & pyth_contract, & wormhole_contract, & alice) ;
198196
199197 let random_id: [ u8 ; 32 ] = [
0 commit comments