Skip to content
This repository has been archived by the owner on Jul 5, 2024. It is now read-only.

Commit

Permalink
Fix failing test (looking for .diff instead of .bsdiff)
Browse files Browse the repository at this point in the history
  • Loading branch information
caesay committed Mar 19, 2022
1 parent 3cc9f2b commit 5eac3d3
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions test/DeltaPackageTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -149,15 +149,15 @@ public void CreateDeltaPackageIntegrationTest()
// All the other files should be diffs and shasums
deltaPkgFiles
.Where(x => !newFilesAdded.Any(y => x.Path.ToLowerInvariant().Contains(y)))
.All(x => x.Path.ToLowerInvariant().EndsWith("diff") || x.Path.ToLowerInvariant().EndsWith("shasum"))
.All(x => x.Path.ToLowerInvariant().EndsWith("bsdiff") || x.Path.ToLowerInvariant().EndsWith("shasum"))
.ShouldBeTrue();

// Every .diff file should have a shasum file
deltaPkg.Files.Any(x => x.Path.ToLowerInvariant().EndsWith(".diff")).ShouldBeTrue();
deltaPkg.Files.Any(x => x.Path.ToLowerInvariant().EndsWith(".bsdiff")).ShouldBeTrue();
deltaPkg.Files
.Where(x => x.Path.ToLowerInvariant().EndsWith(".diff"))
.Where(x => x.Path.ToLowerInvariant().EndsWith(".bsdiff"))
.ForEach(x => {
var lookingFor = x.Path.Replace(".diff", ".shasum");
var lookingFor = x.Path.Replace(".bsdiff", ".shasum");
this.Log().Info("Looking for corresponding shasum file: {0}", lookingFor);
deltaPkg.Files.Any(y => y.Path == lookingFor).ShouldBeTrue();
});
Expand Down

0 comments on commit 5eac3d3

Please sign in to comment.