Skip to content

Commit

Permalink
fix get log level test
Browse files Browse the repository at this point in the history
  • Loading branch information
AlvaroVega committed Nov 3, 2023
1 parent 09e2803 commit 956a072
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lib/server/handlers/sthGetLogLevelHandler.js
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ function getLogLevelHandler(request, reply) {

sthLogger.info(request.sth.context, 'Responding with logging level: ' + level);

const response = reply(getLogLevelResponse(level));
const response = reply.response(getLogLevelResponse(level));
sthServerUtils.addFiwareCorrelator(request, response);
return response;
}
Expand Down
2 changes: 1 addition & 1 deletion test/unit/sthGetLogLevelHandler_test.js
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ describe('sthGetLogLevelHandler tests', function() {
it('should start gracefully', function(done) {
sth.sthServer.startServer(sthConfig.STH_HOST, sthConfig.STH_PORT, function(err, server) {
expect(err).to.equal(null);
expect(server).to.be.a(hapi.Server);
expect(server).to.not.equal(null);
done();
});
});
Expand Down

0 comments on commit 956a072

Please sign in to comment.