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 {
256256 }
257257
258258 protected String getBaseUrl () {
259- String appContext = getAppContext ();
260259 StringBuilder sb = new StringBuilder ();
261260 sb .append ("http://localhost" );
262261 if (appServerPort != 80 ) {
263262 sb .append (':' );
264263 sb .append (appServerPort );
265264 }
266- sb .append (appContext );
265+ sb .append (getAppContext () );
267266 return sb .toString ();
268267 }
269268
270269 protected String getAppContext () {
271270 if (currentImageAppFileName .endsWith (".jar" )) {
272271 // spring boot jar
273- return "/ " ;
272+ return "" ;
274273 } else {
275- return "/" + currentImageAppFileName .replace (".war" , "" ) + "/" ;
274+ return "/" + currentImageAppFileName .replace (".war" , "" );
276275 }
277276 }
278277
@@ -288,7 +287,7 @@ private void clearOutAnyInitLogs() throws Exception {
288287 assertThat (
289288 mockedIngestion
290289 .getLiveMetrics ()
291- .getRequestCount ("GET " + getAppContext ()))
290+ .getRequestCount ("GET " + getAppContext () + "/" ))
292291 .isEqualTo (1 ));
293292
294293 System .out .println ("Clearing any RequestData from health check." );
You can’t perform that action at this time.
0 commit comments