@@ -46,7 +46,8 @@ public void CachesResourcesAfterFirstLoad()
4646 var initialResourcesRequested = GetAndClearRequestedPaths ( ) ;
4747 Assert . NotEmpty ( initialResourcesRequested . Where ( path => path . EndsWith ( "/blazor.boot.json" ) ) ) ;
4848 Assert . NotEmpty ( initialResourcesRequested . Where ( path => path . EndsWith ( "/dotnet.wasm" ) ) ) ;
49- Assert . NotEmpty ( initialResourcesRequested . Where ( path => path . EndsWith ( ".js" ) ) ) ;
49+ Assert . NotEmpty ( initialResourcesRequested . Where ( path => path . EndsWith ( "/dotnet.timezones.dat" ) ) ) ;
50+ Assert . NotEmpty ( initialResourcesRequested . Where ( path => path . EndsWith ( ".js?customizedbootresource=true" ) ) ) ;
5051 Assert . NotEmpty ( initialResourcesRequested . Where ( path => path . EndsWith ( ".dll" ) ) ) ;
5152
5253 // On subsequent loads, we skip the items referenced from blazor.boot.json
@@ -57,11 +58,12 @@ public void CachesResourcesAfterFirstLoad()
5758 var subsequentResourcesRequested = GetAndClearRequestedPaths ( ) ;
5859 Assert . NotEmpty ( initialResourcesRequested . Where ( path => path . EndsWith ( "/blazor.boot.json" ) ) ) ;
5960 Assert . Empty ( subsequentResourcesRequested . Where ( path => path . EndsWith ( "/dotnet.wasm" ) ) ) ;
60- Assert . NotEmpty ( subsequentResourcesRequested . Where ( path => path . EndsWith ( ".js" ) ) ) ;
61+ Assert . Empty ( initialResourcesRequested . Where ( path => path . EndsWith ( "/dotnet.timezones.dat" ) ) ) ;
62+ Assert . NotEmpty ( subsequentResourcesRequested . Where ( path => path . EndsWith ( ".js?customizedbootresource=true" ) ) ) ;
6163 Assert . Empty ( subsequentResourcesRequested . Where ( path => path . EndsWith ( ".dll" ) ) ) ;
6264 }
6365
64- [ Fact ( Skip = "https://github.com/dotnet/aspnetcore/issues/20154" ) ]
66+ [ Fact ]
6567 public void IncrementallyUpdatesCache ( )
6668 {
6769 // Perform a first load to populate the cache
@@ -137,7 +139,7 @@ private void AddCacheEntry(string url, string content)
137139
138140 private IReadOnlyCollection < string > GetAndClearRequestedPaths ( )
139141 {
140- var requestLog = _serverFixture . Host . Services . GetRequiredService < RequestLog > ( ) ;
142+ var requestLog = _serverFixture . Host . Services . GetRequiredService < BootResourceRequestLog > ( ) ;
141143 var result = requestLog . RequestPaths . ToList ( ) ;
142144 requestLog . Clear ( ) ;
143145 return result ;
0 commit comments