Skip to content

Commit

Permalink
Fix package readme file test by adding content to it
Browse files Browse the repository at this point in the history
It seems the readme file cannot be empty when packing, so add some content to fix the failing test on release builds (i.e. in CI).
  • Loading branch information
kzu committed Jun 17, 2021
1 parent e1d734d commit b093c43
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/NuGetizer.Tests/CreatePackageTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -579,6 +579,7 @@ public void when_creating_package_with_content_file_then_adds_as_content_file()
public void when_creating_package_with_readme_then_has_readme_metadata()
{
var content = Path.GetTempFileName();
File.WriteAllText(content, "# Readme Sample");
task.Contents = new[]
{
new TaskItem(content, new Metadata
Expand Down

0 comments on commit b093c43

Please sign in to comment.