@@ -170,36 +170,5 @@ describe("transactions", () => {
170170 await checkRecordCountByIdInAnotherTransaction ( 9 , 1 ) ;
171171 await checkRecordCountByIdInAnotherTransaction ( 10 , 1 ) ;
172172 } ) ;
173-
174- it ( "should not allow concurrent write transactions" , async ( ) => {
175- const firebolt = Firebolt ( ) ;
176- const connection1 = await firebolt . connect ( connectionParams ) ;
177- const connection2 = await firebolt . connect ( connectionParams ) ;
178-
179- // Start first transaction with a write operation
180- await connection1 . begin ( ) ;
181- await connection1 . execute ( "INSERT INTO transaction_test VALUES (11, 'first')" ) ;
182-
183- // Attempt to start a second concurrent write transaction
184- // Core does not support multiple concurrent write transactions, so this should fail
185- // The error may occur when trying to begin() or when trying to execute the write operation
186- let secondTransactionFailed = false ;
187- try {
188- await connection2 . begin ( ) ;
189- await connection2 . execute ( "INSERT INTO transaction_test VALUES (12, 'second')" ) ;
190- } catch ( error ) {
191- secondTransactionFailed = true ;
192- // Verify that the second transaction did not succeed
193- await checkRecordCountByIdInAnotherTransaction ( 12 , 0 ) ;
194- }
195-
196- expect ( secondTransactionFailed ) . toBe ( true ) ;
197-
198- // Clean up: rollback the first transaction
199- await connection1 . rollback ( ) ;
200-
201- // Verify the first transaction's data was rolled back
202- await checkRecordCountByIdInAnotherTransaction ( 11 , 0 ) ;
203- } ) ;
204173} ) ;
205174
0 commit comments