@@ -35,7 +35,11 @@ use ya_framework_basic::mocks::net::{gsb_market_prefixes, gsb_prefixes, IMockBro
3535use crate :: identity:: RealIdentity ;
3636use crate :: net:: MockNet ;
3737
38- use testcontainers:: { core:: WaitFor , runners:: AsyncRunner , GenericImage , ImageExt } ;
38+ use testcontainers:: {
39+ core:: { logs:: LogFrame , WaitFor } ,
40+ runners:: AsyncRunner ,
41+ GenericImage , ImageExt ,
42+ } ;
3943
4044/// Instantiates market test nodes inside one process.
4145///
@@ -186,6 +190,8 @@ impl MarketsNetwork {
186190 pub async fn init_golembase ( config : & Config ) -> Result < ContainerAsync < GenericImage > > {
187191 let ws_port = config. discovery . get_ws_url ( ) . port ( ) . unwrap_or ( 8545 ) ;
188192 let timeout = Duration :: from_secs ( 60 ) ;
193+ let log_consumer =
194+ |line : & LogFrame | log:: info!( "[GolemBase]: {}" , String :: from_utf8_lossy( & line. bytes( ) ) ) ;
189195
190196 let image = GenericImage :: new ( "quay.io/golemnetwork/gb-op-geth" , "latest" )
191197 . with_wait_for ( WaitFor :: message_on_stderr ( "HTTP server started" ) )
@@ -196,7 +202,7 @@ impl MarketsNetwork {
196202 "--http.api" ,
197203 "eth,web3,net,debug,golembase" ,
198204 "--verbosity" ,
199- "3 " ,
205+ "5 " ,
200206 "--http.addr" ,
201207 "0.0.0.0" ,
202208 "--http.port" ,
@@ -213,6 +219,7 @@ impl MarketsNetwork {
213219 ] )
214220 . with_env_var ( "GITHUB_ACTIONS" , "true" )
215221 . with_env_var ( "CI" , "true" )
222+ . with_log_consumer ( log_consumer)
216223 . start ( )
217224 . timeout ( Some ( timeout) )
218225 . await
0 commit comments