@@ -58,8 +58,9 @@ test("l2geth installation", async () => {
5858 //install besu
5959 let executionClient = serviceManager . getService ( "L2GethService" , { network : "op-mainnet" , installDir : "/opt/stereum" } ) ;
6060
61- let versions = await nodeConnection . nodeUpdates . checkUpdates ( ) ;
62- executionClient . imageVersion = versions [ executionClient . network ] [ executionClient . service ] . slice ( - 1 ) . pop ( ) ;
61+ // let versions = await nodeConnection.nodeUpdates.checkUpdates();
62+ // executionClient.imageVersion = versions[executionClient.network][executionClient.service].slice(-1).pop();
63+ executionClient . imageVersion = "latest" ;
6364
6465 await nodeConnection . writeServiceConfiguration ( executionClient . buildConfiguration ( ) ) ;
6566 await serviceManager . manageServiceState ( executionClient . id , "started" ) ;
@@ -68,19 +69,22 @@ test("l2geth installation", async () => {
6869 let condition = false ;
6970 let counter = 0 ;
7071 let status = "" ;
71- while ( ! condition && counter < 10 ) {
72+ let completeStatus = "" ;
73+ while ( ! condition && counter < 5 ) {
7274 await testServer . Sleep ( 30000 ) ;
7375 status = await nodeConnection . sshService . exec ( `docker logs stereum-${ executionClient . id } ` ) ;
76+ completeStatus = status . stdout + status . stderr ;
77+
7478 if (
75- / S t a r t i n g p e e r - t o - p e e r n o d e / . test ( status . stdout ) &&
76- / O p e n e d a n c i e n t d a t a b a s e / . test ( status . stdout ) &&
77- / I n i t i a l i s e d c h a i n c o n f i g u r a t i o n / . test ( status . stdout ) &&
78- / L o a d e d m o s t r e c e n t l o c a l h e a d e r / . test ( status . stdout ) &&
79- / L o a d e d m o s t r e c e n t l o c a l f u l l b l o c k / . test ( status . stdout ) &&
80- / L o a d e d m o s t r e c e n t l o c a l f a s t b l o c k / . test ( status . stdout ) &&
81- / S t a r t e d P 2 P n e t w o r k i n g / . test ( status . stdout ) &&
82- / I P C e n d p o i n t o p e n e d / . test ( status . stdout ) &&
83- / H T T P e n d p o i n t o p e n e d / . test ( status . stdout )
79+ / S t a r t i n g p e e r - t o - p e e r n o d e / . test ( completeStatus ) &&
80+ / O p e n e d a n c i e n t d a t a b a s e / . test ( completeStatus ) &&
81+ / I n i t i a l i s e d c h a i n c o n f i g u r a t i o n / . test ( completeStatus ) &&
82+ / L o a d e d m o s t r e c e n t l o c a l h e a d e r / . test ( completeStatus ) &&
83+ / L o a d e d m o s t r e c e n t l o c a l f u l l b l o c k / . test ( completeStatus ) &&
84+ / L o a d e d m o s t r e c e n t l o c a l f a s t b l o c k / . test ( completeStatus ) &&
85+ / S t a r t e d P 2 P n e t w o r k i n g / . test ( completeStatus ) &&
86+ / I P C e n d p o i n t o p e n e d / . test ( completeStatus ) &&
87+ / H T T P e n d p o i n t o p e n e d / . test ( completeStatus )
8488 ) {
8589 condition = true ;
8690 }
@@ -103,13 +107,13 @@ test("l2geth installation", async () => {
103107 expect ( ( docker . stdout . match ( new RegExp ( "Up" , "g" ) ) || [ ] ) . length ) . toBe ( 1 ) ;
104108 }
105109
106- expect ( status . stdout ) . toMatch ( / S t a r t i n g p e e r - t o - p e e r n o d e / ) ;
107- expect ( status . stdout ) . toMatch ( / O p e n e d a n c i e n t d a t a b a s e / ) ;
108- expect ( status . stdout ) . toMatch ( / I n i t i a l i s e d c h a i n c o n f i g u r a t i o n / ) ;
109- expect ( status . stdout ) . toMatch ( / L o a d e d m o s t r e c e n t l o c a l h e a d e r / ) ;
110- expect ( status . stdout ) . toMatch ( / L o a d e d m o s t r e c e n t l o c a l f u l l b l o c k / ) ;
111- expect ( status . stdout ) . toMatch ( / L o a d e d m o s t r e c e n t l o c a l f a s t b l o c k / ) ;
112- expect ( status . stdout ) . toMatch ( / S t a r t e d P 2 P n e t w o r k i n g / ) ;
113- expect ( status . stdout ) . toMatch ( / I P C e n d p o i n t o p e n e d / ) ;
114- expect ( status . stdout ) . toMatch ( / H T T P e n d p o i n t o p e n e d / ) ;
110+ expect ( completeStatus ) . toMatch ( / S t a r t i n g p e e r - t o - p e e r n o d e / ) ;
111+ expect ( completeStatus ) . toMatch ( / O p e n e d a n c i e n t d a t a b a s e / ) ;
112+ expect ( completeStatus ) . toMatch ( / I n i t i a l i s e d c h a i n c o n f i g u r a t i o n / ) ;
113+ expect ( completeStatus ) . toMatch ( / L o a d e d m o s t r e c e n t l o c a l h e a d e r / ) ;
114+ expect ( completeStatus ) . toMatch ( / L o a d e d m o s t r e c e n t l o c a l f u l l b l o c k / ) ;
115+ expect ( completeStatus ) . toMatch ( / L o a d e d m o s t r e c e n t l o c a l f a s t b l o c k / ) ;
116+ expect ( completeStatus ) . toMatch ( / S t a r t e d P 2 P n e t w o r k i n g / ) ;
117+ expect ( completeStatus ) . toMatch ( / I P C e n d p o i n t o p e n e d / ) ;
118+ expect ( completeStatus ) . toMatch ( / H T T P e n d p o i n t o p e n e d / ) ;
115119} ) ;
0 commit comments