File tree Expand file tree Collapse file tree 1 file changed +4
-5
lines changed
smoke-tests/framework/src/main/java/com/microsoft/applicationinsights/smoketest Expand file tree Collapse file tree 1 file changed +4
-5
lines changed Original file line number Diff line number Diff line change @@ -256,23 +256,22 @@ public void beforeEach(ExtensionContext context) throws Exception {
256
256
}
257
257
258
258
protected String getBaseUrl () {
259
- String appContext = getAppContext ();
260
259
StringBuilder sb = new StringBuilder ();
261
260
sb .append ("http://localhost" );
262
261
if (appServerPort != 80 ) {
263
262
sb .append (':' );
264
263
sb .append (appServerPort );
265
264
}
266
- sb .append (appContext );
265
+ sb .append (getAppContext () );
267
266
return sb .toString ();
268
267
}
269
268
270
269
protected String getAppContext () {
271
270
if (currentImageAppFileName .endsWith (".jar" )) {
272
271
// spring boot jar
273
- return "/ " ;
272
+ return "" ;
274
273
} else {
275
- return "/" + currentImageAppFileName .replace (".war" , "" ) + "/" ;
274
+ return "/" + currentImageAppFileName .replace (".war" , "" );
276
275
}
277
276
}
278
277
@@ -288,7 +287,7 @@ private void clearOutAnyInitLogs() throws Exception {
288
287
assertThat (
289
288
mockedIngestion
290
289
.getLiveMetrics ()
291
- .getRequestCount ("GET " + getAppContext ()))
290
+ .getRequestCount ("GET " + getAppContext () + "/" ))
292
291
.isEqualTo (1 ));
293
292
294
293
System .out .println ("Clearing any RequestData from health check." );
You can’t perform that action at this time.
0 commit comments