From dd5019b80b20a70ec7b636c54b38163429dae5f5 Mon Sep 17 00:00:00 2001 From: Yankun Huang Date: Fri, 11 Mar 2022 18:05:07 +0800 Subject: [PATCH] Updated the logic of checking the number of default templates --- .../Providers/TemplateCollectionProviderTests.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Microsoft.Health.Fhir.TemplateManagement.UnitTests/Providers/TemplateCollectionProviderTests.cs b/src/Microsoft.Health.Fhir.TemplateManagement.UnitTests/Providers/TemplateCollectionProviderTests.cs index 259f5e52c..41c8bcea0 100644 --- a/src/Microsoft.Health.Fhir.TemplateManagement.UnitTests/Providers/TemplateCollectionProviderTests.cs +++ b/src/Microsoft.Health.Fhir.TemplateManagement.UnitTests/Providers/TemplateCollectionProviderTests.cs @@ -208,7 +208,7 @@ public async Task GivenDefaultTemplateReference_WhenGetTemplateCollectionFromTem ImageInfo imageInfo = ImageInfo.CreateFromImageReference(imageReference); var newTemplateCollectionProvider = new TemplateCollectionProvider(imageInfo, _emptyClient, _cache, _defaultConfig); var templateCollection = await newTemplateCollectionProvider.GetTemplateCollectionAsync(); - Assert.Equal(expectedTemplatesCounts, templateCollection.First().Count()); + Assert.True(expectedTemplatesCounts <= templateCollection.First().Count()); } [Fact]