@@ -205,7 +205,7 @@ describe("ConfigServiceBaseTests", () => {
205
205
fetcherMock . object ( ) ,
206
206
options ) ;
207
207
208
- const actualProjectConfig = await service . getConfig ( ) ;
208
+ const actualProjectConfig = await service . getConfigAsync ( ) ;
209
209
210
210
// Assert
211
211
@@ -253,7 +253,7 @@ describe("ConfigServiceBaseTests", () => {
253
253
fetcherMock . object ( ) ,
254
254
options ) ;
255
255
256
- const actualProjectConfig = await service . getConfig ( ) ;
256
+ const actualProjectConfig = await service . getConfigAsync ( ) ;
257
257
258
258
// Assert
259
259
@@ -300,7 +300,7 @@ describe("ConfigServiceBaseTests", () => {
300
300
fetcherMock . object ( ) ,
301
301
options ) ;
302
302
303
- const actualProjectConfig = await service . getConfig ( ) ;
303
+ const actualProjectConfig = await service . getConfigAsync ( ) ;
304
304
305
305
// Assert
306
306
@@ -411,7 +411,7 @@ describe("ConfigServiceBaseTests", () => {
411
411
assert . isEmpty ( clientReadyEvents ) ;
412
412
assert . isEmpty ( configChangedEvents ) ;
413
413
414
- await service . getConfig ( ) ;
414
+ await service . getConfigAsync ( ) ;
415
415
416
416
await delay ( 100 ) ; // allow a little time for the client to raise ConfigChanged
417
417
@@ -485,7 +485,7 @@ describe("ConfigServiceBaseTests", () => {
485
485
486
486
// Act
487
487
488
- const actualConfig = await service . getConfig ( ) ;
488
+ const actualConfig = await service . getConfigAsync ( ) ;
489
489
490
490
// Assert
491
491
@@ -520,7 +520,7 @@ describe("ConfigServiceBaseTests", () => {
520
520
521
521
// Act
522
522
523
- const actualConfig = await service . getConfig ( ) ;
523
+ const actualConfig = await service . getConfigAsync ( ) ;
524
524
525
525
// Assert
526
526
@@ -612,7 +612,7 @@ describe("ConfigServiceBaseTests", () => {
612
612
cacheMock . verify ( v => v . set ( It . IsAny < string > ( ) , It . IsAny < ProjectConfig > ( ) ) , Times . Once ( ) ) ;
613
613
} ) ;
614
614
615
- it ( "AutoPollConfigService - getConfig () should return cached config when cached config is not expired" , async ( ) => {
615
+ it ( "AutoPollConfigService - getConfigAsync () should return cached config when cached config is not expired" , async ( ) => {
616
616
// Arrange
617
617
618
618
const pollIntervalSeconds = 2 ;
@@ -645,7 +645,7 @@ describe("ConfigServiceBaseTests", () => {
645
645
// Give a bit of time to the polling loop to do the first iteration.
646
646
await delay ( pollIntervalSeconds / 4 * 1000 ) ;
647
647
648
- const actualPc = await service . getConfig ( ) ;
648
+ const actualPc = await service . getConfigAsync ( ) ;
649
649
650
650
// Assert
651
651
@@ -656,7 +656,7 @@ describe("ConfigServiceBaseTests", () => {
656
656
service . dispose ( ) ;
657
657
} ) ;
658
658
659
- it ( "AutoPollConfigService - getConfig () should wait for fetch when cached config is expired" , async ( ) => {
659
+ it ( "AutoPollConfigService - getConfigAsync () should wait for fetch when cached config is expired" , async ( ) => {
660
660
// Arrange
661
661
662
662
const pollIntervalSeconds = 2 ;
@@ -689,7 +689,7 @@ describe("ConfigServiceBaseTests", () => {
689
689
// Give a bit of time to the polling loop to do the first iteration.
690
690
await delay ( pollIntervalSeconds / 4 * 1000 ) ;
691
691
692
- const actualPc = await service . getConfig ( ) ;
692
+ const actualPc = await service . getConfigAsync ( ) ;
693
693
694
694
// Assert
695
695
@@ -702,7 +702,7 @@ describe("ConfigServiceBaseTests", () => {
702
702
service . dispose ( ) ;
703
703
} ) ;
704
704
705
- it ( "LazyLoadConfigService - getConfig () should return cached config when cached config is not expired" , async ( ) => {
705
+ it ( "LazyLoadConfigService - getConfigAsync () should return cached config when cached config is not expired" , async ( ) => {
706
706
// Arrange
707
707
708
708
const cacheTimeToLiveSeconds = 5 ;
@@ -731,7 +731,7 @@ describe("ConfigServiceBaseTests", () => {
731
731
732
732
const service = new LazyLoadConfigService ( fetcherMock . object ( ) , options ) ;
733
733
734
- const actualPc = await service . getConfig ( ) ;
734
+ const actualPc = await service . getConfigAsync ( ) ;
735
735
736
736
// Assert
737
737
@@ -740,7 +740,7 @@ describe("ConfigServiceBaseTests", () => {
740
740
fetcherMock . verify ( v => v . fetchLogic ( It . IsAny < OptionsBase > ( ) , It . IsAny < string > ( ) ) , Times . Never ( ) ) ;
741
741
} ) ;
742
742
743
- it ( "LazyLoadConfigService - getConfig () should fetch when cached config is expired" , async ( ) => {
743
+ it ( "LazyLoadConfigService - getConfigAsync () should fetch when cached config is expired" , async ( ) => {
744
744
// Arrange
745
745
746
746
const cacheTimeToLiveSeconds = 5 ;
@@ -772,7 +772,7 @@ describe("ConfigServiceBaseTests", () => {
772
772
773
773
const service = new LazyLoadConfigService ( fetcherMock . object ( ) , options ) ;
774
774
775
- const actualPc = await service . getConfig ( ) ;
775
+ const actualPc = await service . getConfigAsync ( ) ;
776
776
777
777
// Assert
778
778
0 commit comments