@@ -225,7 +225,7 @@ describe('EndToEnd', async () => {
225225 transaction ! . commit ( ) ;
226226
227227 const expectedSpanNames = [ 'CloudSpanner.Database.getTransaction' ] ;
228- const expectedEventNames = [ ...cacheSessionEvents , 'Using Session' ] ;
228+ const expectedEventNames = [ ...cacheSessionEvents ] ;
229229 await verifySpansAndEvents (
230230 traceExporter ,
231231 expectedSpanNames ,
@@ -245,11 +245,7 @@ describe('EndToEnd', async () => {
245245 'CloudSpanner.Snapshot.runStream' ,
246246 'CloudSpanner.Database.runStream' ,
247247 ] ;
248- const expectedEventNames = [
249- 'Starting stream' ,
250- ...cacheSessionEvents ,
251- 'Using Session' ,
252- ] ;
248+ const expectedEventNames = [ 'Starting stream' , ...cacheSessionEvents ] ;
253249 await verifySpansAndEvents (
254250 traceExporter ,
255251 expectedSpanNames ,
@@ -267,11 +263,7 @@ describe('EndToEnd', async () => {
267263 'CloudSpanner.Database.runStream' ,
268264 'CloudSpanner.Database.run' ,
269265 ] ;
270- const expectedEventNames = [
271- 'Starting stream' ,
272- ...cacheSessionEvents ,
273- 'Using Session' ,
274- ] ;
266+ const expectedEventNames = [ 'Starting stream' , ...cacheSessionEvents ] ;
275267 await verifySpansAndEvents (
276268 traceExporter ,
277269 expectedSpanNames ,
@@ -319,7 +311,6 @@ describe('EndToEnd', async () => {
319311 const expectedEventNames = [
320312 'Starting stream' ,
321313 ...cacheSessionEvents ,
322- 'Using Session' ,
323314 'Transaction Creation Done' ,
324315 ] ;
325316 await verifySpansAndEvents (
@@ -350,22 +341,21 @@ describe('EndToEnd', async () => {
350341 'CloudSpanner.Database.batchCreateSessions' ,
351342 'CloudSpanner.SessionPool.createSessions' ,
352343 'CloudSpanner.Snapshot.runStream' ,
344+ 'CloudSpanner.Snapshot.begin' ,
353345 'CloudSpanner.Snapshot.runStream' ,
354346 'CloudSpanner.Transaction.commit' ,
355- 'CloudSpanner.Snapshot.begin' ,
356347 'CloudSpanner.Database.runTransaction' ,
357348 ] ;
358349 const expectedEventNames = [
359- ...waitingSessionsEvents ,
360- 'Retrying Transaction' ,
350+ ...batchCreateSessionsEvents ,
361351 'Starting stream' ,
362- 'exception' ,
363- 'Stream broken. Not safe to retry' ,
364352 'Begin Transaction' ,
365353 'Transaction Creation Done' ,
366354 'Starting stream' ,
367355 'Starting Commit' ,
368356 'Commit Done' ,
357+ ...waitingSessionsEvents ,
358+ 'Retrying transaction' ,
369359 ] ;
370360 await verifySpansAndEvents (
371361 traceExporter ,
@@ -381,7 +371,7 @@ describe('EndToEnd', async () => {
381371 } ) ;
382372 } ) ;
383373
384- it . skip ( 'runTransactionAsync with abort' , async ( ) => {
374+ it ( 'runTransactionAsync with abort' , async ( ) => {
385375 let attempts = 0 ;
386376 const database = newTestDatabase ( ) ;
387377 await database . runTransactionAsync ( ( transaction ) : Promise < number > => {
@@ -406,11 +396,8 @@ describe('EndToEnd', async () => {
406396 'CloudSpanner.Database.runTransactionAsync' ,
407397 ] ;
408398 const expectedEventNames = [
409- 'Requesting 25 sessions' ,
410- 'Creating 25 sessions' ,
411- 'Requested for 25 sessions returned 25' ,
399+ ...batchCreateSessionsEvents ,
412400 'Starting stream' ,
413- 'exception' ,
414401 'Stream broken. Not safe to retry' ,
415402 'Begin Transaction' ,
416403 'Transaction Creation Done' ,
@@ -441,7 +428,6 @@ describe('EndToEnd', async () => {
441428 'Starting Commit' ,
442429 'Commit Done' ,
443430 ...cacheSessionEvents ,
444- 'Using Session' ,
445431 ] ;
446432 await verifySpansAndEvents (
447433 traceExporter ,
@@ -639,7 +625,6 @@ describe('ObservabilityOptions injection and propagation', async () => {
639625
640626 const expectedEventNames = [
641627 ...cacheSessionEvents ,
642- 'Using Session' ,
643628 'Starting stream' ,
644629 'Transaction Creation Done' ,
645630 ] ;
@@ -747,7 +732,6 @@ describe('ObservabilityOptions injection and propagation', async () => {
747732
748733 const expectedEventNames = [
749734 ...cacheSessionEvents ,
750- 'Using Session' ,
751735 'Starting stream' ,
752736 ] ;
753737 assert . deepStrictEqual (
0 commit comments