Skip to content

Commit e7edb57

Browse files
committed
fix tests
1 parent 64e79dd commit e7edb57

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

powertools-logging/src/test/java/software/amazon/lambda/powertools/logging/internal/LambdaLoggingAspectTest.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -704,9 +704,9 @@ private void setupContext() {
704704

705705
private void resetLogLevel(Level level)
706706
throws NoSuchMethodException, IllegalAccessException, InvocationTargetException {
707-
Method resetLogLevels = LambdaLoggingAspect.class.getDeclaredMethod("resetLogLevels", Level.class);
708-
resetLogLevels.setAccessible(true);
709-
resetLogLevels.invoke(null, level);
707+
Method setLogLevels = LambdaLoggingAspect.class.getDeclaredMethod("setLogLevels", Level.class);
708+
setLogLevels.setAccessible(true);
709+
setLogLevels.invoke(null, level);
710710
writeStaticField(LambdaLoggingAspect.class, "LEVEL_AT_INITIALISATION", level, true);
711711
}
712712
}

0 commit comments

Comments
 (0)