File tree Expand file tree Collapse file tree 2 files changed +6
-2
lines changed
Blazor/testassets/HostedInAspNet.Server Expand file tree Collapse file tree 2 files changed +6
-2
lines changed Original file line number Diff line number Diff line change @@ -17,6 +17,10 @@ public static IHost BuildWebHost(string[] args) =>
17
17
Host . CreateDefaultBuilder ( args )
18
18
. ConfigureWebHostDefaults ( webHostBuilder =>
19
19
{
20
+ // We require this line because we run in Production environment
21
+ // and static web assets are only on by default during development.
22
+ webHostBuilder . UseStaticWebAssets ( ) ;
23
+
20
24
webHostBuilder . UseStartup < Startup > ( ) ;
21
25
} )
22
26
. Build ( ) ;
Original file line number Diff line number Diff line change @@ -29,7 +29,7 @@ public BootResourceCachingTest(
29
29
ITestOutputHelper output )
30
30
: base ( browserFixture , serverFixture , output )
31
31
{
32
- serverFixture . BuildWebHostMethod = HostedInAspNet . Server . Program . BuildWebHost ;
32
+ serverFixture . BuildWebHostMethod = Program . BuildWebHost ;
33
33
}
34
34
35
35
public override Task InitializeAsync ( )
@@ -57,7 +57,7 @@ public void CachesResourcesAfterFirstLoad()
57
57
var subsequentResourcesRequested = GetAndClearRequestedPaths ( ) ;
58
58
Assert . NotEmpty ( initialResourcesRequested . Where ( path => path . EndsWith ( "/blazor.boot.json" ) ) ) ;
59
59
Assert . Empty ( subsequentResourcesRequested . Where ( path => path . EndsWith ( "/dotnet.wasm" ) ) ) ;
60
- Assert . NotEmpty ( subsequentResourcesRequested . Where ( path => path . EndsWith ( ".js" ) ) ) ;
60
+ Assert . Empty ( subsequentResourcesRequested . Where ( path => path . EndsWith ( ".js" ) ) ) ;
61
61
Assert . Empty ( subsequentResourcesRequested . Where ( path => path . EndsWith ( ".dll" ) ) ) ;
62
62
}
63
63
You can’t perform that action at this time.
0 commit comments