Skip to content

Commit

Permalink
fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
graemerocher committed Nov 22, 2024
1 parent 7936606 commit 50599a8
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -300,8 +300,8 @@ protected void configureServletInitializer(Server server, ServletContextHandler
}

List<ContextHandler> resourceHandlers = Stream.concat(
getStaticResourceConfigurations().stream().map(servletStaticResourceConfiguration -> toHandler(servletStaticResourceConfiguration, ResourceFactory.of(contextHandler))),
Stream.of(contextHandler)
Stream.of(contextHandler),
getStaticResourceConfigurations().stream().map(servletStaticResourceConfiguration -> toHandler(servletStaticResourceConfiguration, ResourceFactory.of(contextHandler)))
).toList();

ContextHandlerCollection contextHandlerCollection = new ContextHandlerCollection(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,10 @@ class JettyStaticResourceResolutionSpec extends Specification implements TestPro
EmbeddedServer embeddedServer = ApplicationContext.run(EmbeddedServer, [
'micronaut.router.static-resources.default.paths': ['classpath:public', 'file:' + tempFile.parent],
'micronaut.router.static-resources.default.mapping': '/static/**'])
HttpClient rxClient = embeddedServer.applicationContext.createBean(HttpClient, embeddedServer.getURL())

def url = embeddedServer.getURL()
println("URL IS $url")
HttpClient rxClient = embeddedServer.applicationContext.createBean(HttpClient, url)


when:
Expand Down

0 comments on commit 50599a8

Please sign in to comment.