@@ -306,7 +306,7 @@ describe('Class: ProviderService', () => {
306
306
} ) ;
307
307
308
308
describe ( 'Method: instrumentFetch' , ( ) => {
309
- it ( 'subscribes to the diagnostics channel' , async ( ) => {
309
+ it ( 'subscribes to the diagnostics channel' , ( ) => {
310
310
// Prepare
311
311
const provider : ProviderService = new ProviderService ( ) ;
312
312
@@ -319,7 +319,7 @@ describe('Class: ProviderService', () => {
319
319
expect ( channel ( 'undici:request:error' ) . hasSubscribers ) . toBe ( true ) ;
320
320
} ) ;
321
321
322
- it ( 'traces a successful request' , async ( ) => {
322
+ it ( 'traces a successful request' , ( ) => {
323
323
// Prepare
324
324
const provider : ProviderService = new ProviderService ( ) ;
325
325
const segment = new Subsegment ( '## dummySegment' ) ;
@@ -367,7 +367,7 @@ describe('Class: ProviderService', () => {
367
367
) ;
368
368
} ) ;
369
369
370
- it ( 'excludes the content_length header when invalid or not found' , async ( ) => {
370
+ it ( 'excludes the content_length header when invalid or not found' , ( ) => {
371
371
// Prepare
372
372
const provider : ProviderService = new ProviderService ( ) ;
373
373
const segment = new Subsegment ( '## dummySegment' ) ;
@@ -406,7 +406,7 @@ describe('Class: ProviderService', () => {
406
406
expect ( provider . setSegment ) . toHaveBeenLastCalledWith ( segment ) ;
407
407
} ) ;
408
408
409
- it ( 'adds a throttle flag to the segment when the status code is 429' , async ( ) => {
409
+ it ( 'adds a throttle flag to the segment when the status code is 429' , ( ) => {
410
410
// Prepare
411
411
const provider : ProviderService = new ProviderService ( ) ;
412
412
const segment = new Subsegment ( '## dummySegment' ) ;
@@ -442,7 +442,7 @@ describe('Class: ProviderService', () => {
442
442
expect ( provider . setSegment ) . toHaveBeenLastCalledWith ( segment ) ;
443
443
} ) ;
444
444
445
- it ( 'adds an error flag to the segment when the status code is 4xx' , async ( ) => {
445
+ it ( 'adds an error flag to the segment when the status code is 4xx' , ( ) => {
446
446
// Prepare
447
447
const provider : ProviderService = new ProviderService ( ) ;
448
448
const segment = new Subsegment ( '## dummySegment' ) ;
@@ -478,7 +478,7 @@ describe('Class: ProviderService', () => {
478
478
expect ( provider . setSegment ) . toHaveBeenLastCalledWith ( segment ) ;
479
479
} ) ;
480
480
481
- it ( 'adds a fault flag to the segment when the status code is 5xx' , async ( ) => {
481
+ it ( 'adds a fault flag to the segment when the status code is 5xx' , ( ) => {
482
482
// Prepare
483
483
const provider : ProviderService = new ProviderService ( ) ;
484
484
const segment = new Subsegment ( '## dummySegment' ) ;
@@ -514,7 +514,7 @@ describe('Class: ProviderService', () => {
514
514
expect ( provider . setSegment ) . toHaveBeenLastCalledWith ( segment ) ;
515
515
} ) ;
516
516
517
- it ( 'skips the segment creation when the request has no origin' , async ( ) => {
517
+ it ( 'skips the segment creation when the request has no origin' , ( ) => {
518
518
// Prepare
519
519
const provider : ProviderService = new ProviderService ( ) ;
520
520
const segment = new Subsegment ( '## dummySegment' ) ;
@@ -531,7 +531,7 @@ describe('Class: ProviderService', () => {
531
531
expect ( provider . setSegment ) . toHaveBeenCalledTimes ( 0 ) ;
532
532
} ) ;
533
533
534
- it ( 'does not add any path to the segment when the request has no path' , async ( ) => {
534
+ it ( 'does not add any path to the segment when the request has no path' , ( ) => {
535
535
// Prepare
536
536
const provider : ProviderService = new ProviderService ( ) ;
537
537
const segment = new Subsegment ( '## dummySegment' ) ;
@@ -564,7 +564,7 @@ describe('Class: ProviderService', () => {
564
564
} ) ;
565
565
} ) ;
566
566
567
- it ( 'closes the segment and adds a fault flag when the connection fails' , async ( ) => {
567
+ it ( 'closes the segment and adds a fault flag when the connection fails' , ( ) => {
568
568
// Prepare
569
569
const provider : ProviderService = new ProviderService ( ) ;
570
570
const segment = new Subsegment ( '## dummySegment' ) ;
@@ -595,7 +595,7 @@ describe('Class: ProviderService', () => {
595
595
expect ( provider . setSegment ) . toHaveBeenLastCalledWith ( segment ) ;
596
596
} ) ;
597
597
598
- it ( 'forwards the correct sampling decision in the request header' , async ( ) => {
598
+ it ( 'forwards the correct sampling decision in the request header' , ( ) => {
599
599
// Prepare
600
600
const provider : ProviderService = new ProviderService ( ) ;
601
601
const segment = new Subsegment ( '## dummySegment' ) ;
0 commit comments