Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -325,7 +325,7 @@ public void BundlesScopedCssFiles_DoesNotOverrideBundleForSameContents()

[Fact]
[QuarantinedTest("https://github.com/dotnet/aspnetcore/issues/25623")]
public void BundlesScopedCssFiles_UpdatesBundleWhenContentsChange()
public async System.Threading.Tasks.Task BundlesScopedCssFiles_UpdatesBundleWhenContentsChange()
{
// Arrange
var expectedFile = Path.Combine(Directory.GetCurrentDirectory(), $"{Guid.NewGuid():N}.css");
Expand Down Expand Up @@ -382,14 +382,14 @@ public void BundlesScopedCssFiles_UpdatesBundleWhenContentsChange()
}),
};

await System.Threading.Tasks.Task.Delay(1000);
taskInstance.Execute();

// Assert
Assert.True(result);
Assert.True(File.Exists(expectedFile));
var actualContents = File.ReadAllText(expectedFile);
Assert.Equal(UpdatedBundleContent, actualContents, ignoreLineEndingDifferences: true);

Assert.NotEqual(lastModified, File.GetLastWriteTimeUtc(expectedFile));
}
}
Expand Down