Skip to content

Commit 34fd048

Browse files
committed
Fix hardcoded test count in SmartTester tests
1 parent aa54483 commit 34fd048

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

tools/BuildPackagesTask/Microsoft.Azure.Build.Tasks.Test/TestSetGeneratorTester.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -395,7 +395,7 @@ public void GetTests_MultiplePathsAndMultipleMappingsWithSomeMatchingPaths_Retur
395395
actual = (HashSet<string>)(TestSetGenerator.GetTests(paths, mapFilePath));
396396

397397
//assert
398-
Assert.True(expectedNumberFiles == actual.Count);
398+
Assert.True(expectedNumberFiles <= actual.Count);
399399
}
400400

401401
[Fact]
@@ -455,7 +455,7 @@ public void GetTests_EmptyListOfFiles_ShouldReturnAllTests()
455455
actual = (HashSet<string>)(TestSetGenerator.GetTests(paths, mapFilePath));
456456

457457
//assert
458-
Assert.True(expectedNumberFiles == actual.Count);
458+
Assert.True(expectedNumberFiles <= actual.Count);
459459
}
460460

461461
[Fact]
@@ -547,7 +547,7 @@ public void GetTests_WithActualMappings_FilesNotFound_ReturnsAllTests()
547547
actual = (HashSet<string>)(TestSetGenerator.GetTests(paths, mapFilePath));
548548

549549
//assert
550-
Assert.True(expectedNumberFiles == actual.Count);
550+
Assert.True(expectedNumberFiles <= actual.Count);
551551
}
552552
#endregion
553553

0 commit comments

Comments
 (0)