@@ -97,6 +97,7 @@ public async Task StartsWithDotnetOnThePath(string path)
97
97
var deploymentResult = await DeployAsync ( deploymentParameters ) ;
98
98
await deploymentResult . AssertStarts ( ) ;
99
99
100
+ StopServer ( ) ;
100
101
// Verify that in this scenario where.exe was invoked only once by shim and request handler uses cached value
101
102
Assert . Equal ( 1 , TestSink . Writes . Count ( w => w . Message . Contains ( "Invoking where.exe to find dotnet.exe" ) ) ) ;
102
103
}
@@ -143,7 +144,7 @@ public async Task DetectsOverriddenServer()
143
144
Assert . Equal ( HttpStatusCode . InternalServerError , response . StatusCode ) ;
144
145
145
146
StopServer ( ) ;
146
-
147
+
147
148
EventLogHelpers . VerifyEventLogEvents ( deploymentResult ,
148
149
EventLogHelpers . InProcessFailedToStart ( deploymentResult , "CLR worker thread exited prematurely" ) ,
149
150
EventLogHelpers . InProcessThreadException ( deploymentResult , ".*?Application is running inside IIS process but is not configured to use IIS server" ) ) ;
@@ -154,7 +155,7 @@ public async Task LogsStartupExceptionExitError()
154
155
{
155
156
var deploymentParameters = _fixture . GetBaseDeploymentParameters ( _fixture . InProcessTestSite , publish : true ) ;
156
157
deploymentParameters . TransformArguments ( ( a , _ ) => $ "{ a } Throw") ;
157
-
158
+
158
159
var deploymentResult = await DeployAsync ( deploymentParameters ) ;
159
160
160
161
var response = await deploymentResult . HttpClient . GetAsync ( "/" ) ;
@@ -166,7 +167,7 @@ public async Task LogsStartupExceptionExitError()
166
167
EventLogHelpers . InProcessFailedToStart ( deploymentResult , "CLR worker thread exited prematurely" ) ,
167
168
EventLogHelpers . InProcessThreadException ( deploymentResult , ", exception code = '0xe0434352'" ) ) ;
168
169
}
169
-
170
+
170
171
[ ConditionalFact ]
171
172
public async Task LogsUnexpectedThreadExitError ( )
172
173
{
@@ -193,7 +194,7 @@ public async Task StartupTimeoutIsApplied()
193
194
WebConfigHelpers . AddOrModifyAspNetCoreSection ( "startupTimeLimit" , "1" ) ) ;
194
195
195
196
var deploymentResult = await DeployAsync ( deploymentParameters ) ;
196
-
197
+
197
198
var response = await deploymentResult . HttpClient . GetAsync ( "/" ) ;
198
199
Assert . Equal ( HttpStatusCode . InternalServerError , response . StatusCode ) ;
199
200
@@ -213,7 +214,7 @@ public async Task ShutdownTimeoutIsApplied()
213
214
WebConfigHelpers . AddOrModifyAspNetCoreSection ( "shutdownTimeLimit" , "1" ) ) ;
214
215
215
216
var deploymentResult = await DeployAsync ( deploymentParameters ) ;
216
-
217
+
217
218
Assert . Equal ( "Hello World" , await deploymentResult . HttpClient . GetStringAsync ( "/HelloWorld" ) ) ;
218
219
219
220
StopServer ( ) ;
0 commit comments