File tree Expand file tree Collapse file tree 1 file changed +5
-6
lines changed
Expand file tree Collapse file tree 1 file changed +5
-6
lines changed Original file line number Diff line number Diff line change @@ -471,6 +471,7 @@ describe('TemplateManager', () => {
471471 } ) ;
472472
473473 const watcher = await manager . watch ( ) ;
474+
474475 await new Promise ( resolve => setTimeout ( resolve , 100 ) ) ;
475476
476477 // Create multiple templates simultaneously
@@ -494,12 +495,10 @@ describe('TemplateManager', () => {
494495 // Verify all templates were processed
495496 const client = await connect ( ) ;
496497 try {
497- for ( let i = 1 ; i <= count ; i ++ ) {
498- const res = await client . query ( `SELECT proname FROM pg_proc WHERE proname = $1` , [
499- `${ testContext . testFunctionName } _batch_changes_${ i } ` ,
500- ] ) ;
501- expect ( res . rows ) . toHaveLength ( 1 ) ;
502- }
498+ const res = await client . query ( `SELECT proname FROM pg_proc WHERE proname LIKE $1` , [
499+ `${ testContext . testFunctionName } _batch_changes_%` ,
500+ ] ) ;
501+ expect ( res . rows ) . toHaveLength ( count ) ;
503502 } finally {
504503 client . release ( ) ;
505504 }
You can’t perform that action at this time.
0 commit comments