File tree 1 file changed +2
-2
lines changed
src/Razor/Microsoft.NET.Sdk.Razor/test
1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -325,7 +325,7 @@ public void BundlesScopedCssFiles_DoesNotOverrideBundleForSameContents()
325
325
326
326
[ Fact ]
327
327
[ QuarantinedTest ( "https://github.com/dotnet/aspnetcore/issues/25623" ) ]
328
- public void BundlesScopedCssFiles_UpdatesBundleWhenContentsChange ( )
328
+ public async System . Threading . Tasks . Task BundlesScopedCssFiles_UpdatesBundleWhenContentsChange ( )
329
329
{
330
330
// Arrange
331
331
var expectedFile = Path . Combine ( Directory . GetCurrentDirectory ( ) , $ "{ Guid . NewGuid ( ) : N} .css") ;
@@ -382,14 +382,14 @@ public void BundlesScopedCssFiles_UpdatesBundleWhenContentsChange()
382
382
} ) ,
383
383
} ;
384
384
385
+ await System . Threading . Tasks . Task . Delay ( 1000 ) ;
385
386
taskInstance . Execute ( ) ;
386
387
387
388
// Assert
388
389
Assert . True ( result ) ;
389
390
Assert . True ( File . Exists ( expectedFile ) ) ;
390
391
var actualContents = File . ReadAllText ( expectedFile ) ;
391
392
Assert . Equal ( UpdatedBundleContent , actualContents , ignoreLineEndingDifferences : true ) ;
392
-
393
393
Assert . NotEqual ( lastModified , File . GetLastWriteTimeUtc ( expectedFile ) ) ;
394
394
}
395
395
}
You can’t perform that action at this time.
0 commit comments