@@ -12,7 +12,6 @@ const raowtState: Record<
1212    copyCount : number ; 
1313    deleteCount : number ; 
1414    pushCount : number ; 
15-     getEventCount : number ; 
1615    tmpIndexName : string ; 
1716    waitTaskCount : number ; 
1817    waitingForFinalWaitTask : boolean ; 
@@ -43,7 +42,6 @@ function addRoutes(app: Express): void {
4342      raowtState [ lang ]  =  { 
4443        copyCount : 0 , 
4544        pushCount : 0 , 
46-         getEventCount : 0 , 
4745        deleteCount : 1 , 
4846        waitTaskCount : 0 , 
4947        tmpIndexName : req . params . indexName , 
@@ -71,7 +69,6 @@ function addRoutes(app: Express): void {
7169          raowtState [ lang ]  =  { 
7270            copyCount : 1 , 
7371            pushCount : 0 , 
74-             getEventCount : 0 , 
7572            deleteCount : 0 , 
7673            waitTaskCount : 0 , 
7774            tmpIndexName : req . body . destination , 
@@ -88,11 +85,11 @@ function addRoutes(app: Express): void {
8885      case  'move' : { 
8986        const  lang  =  req . body . destination . replace ( 'cts_e2e_replace_all_objects_with_transformation_' ,  '' ) ; 
9087        expect ( raowtState ) . to . include . keys ( lang ) ; 
88+         console . log ( raowtState [ lang ] ) ; 
9189        expect ( raowtState [ lang ] ) . to . deep . equal ( { 
9290          copyCount : 2 , 
9391          pushCount : 10 , 
9492          deleteCount : 0 , 
95-           getEventCount : 6 , 
9693          waitTaskCount : 2 , 
9794          tmpIndexName : req . params . indexName , 
9895          waitingForFinalWaitTask : false , 
@@ -125,18 +122,14 @@ function addRoutes(app: Express): void {
125122    raowtState [ lang ] . pushCount  +=  req . body . records . length ; 
126123
127124    res . json ( { 
128-       runID : `b1b7a982-524c-40d2-bb7f-48aab075abda_ ${ lang }  ` , 
125+       runID : `b1b7a982-524c-40d2-bb7f-48aab075abda ` , 
129126      eventID : `113b2068-6337-4c85-b5c2-e7b213d8292${ raowtState [ lang ] . pushCount }  ` , 
130127      message : 'OK' , 
131128      createdAt : '2022-05-12T06:24:30.049Z' , 
132129    } ) ; 
133130  } ) ; 
134131
135132  app . get ( '/1/runs/:runID/events/:eventID' ,  ( req ,  res )  =>  { 
136-     const  lang  =  req . params . runID . match ( / ^ b 1 b 7 a 9 8 2 - 5 2 4 c - 4 0 d 2 - b b 7 f - 4 8 a a b 0 7 5 a b d a _ ( .* ) $ / ) ?. [ 1 ]  as  string ; 
137- 
138-     raowtState [ lang ] . getEventCount ++ ; 
139- 
140133    res . json ( { 
141134      status : 'succeeded' , 
142135      eventID : req . params . eventID , 
@@ -160,7 +153,6 @@ function addRoutes(app: Express): void {
160153      expect ( raowtState [ lang ] ) . to . deep . equal ( { 
161154        copyCount : 2 , 
162155        pushCount : 10 , 
163-         getEventCount : 6 , 
164156        deleteCount : 0 , 
165157        waitTaskCount : 3 , 
166158        tmpIndexName : req . params . indexName , 
0 commit comments