Skip to content

Commit b94942e

Browse files
committed
resolved testing issues
1 parent 142e102 commit b94942e

File tree

2 files changed

+1
-5
lines changed
  • powertools-logging

2 files changed

+1
-5
lines changed

powertools-logging/powertools-logging-log4j/pom.xml

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -119,9 +119,6 @@
119119
--add-opens java.base/java.util=ALL-UNNAMED
120120
--add-opens java.base/java.lang=ALL-UNNAMED
121121
</argLine>
122-
<environmentVariables>
123-
<AWS_LAMBDA_INITIALIZATION_TYPE>on-demand</AWS_LAMBDA_INITIALIZATION_TYPE>
124-
</environmentVariables>
125122
</configuration>
126123
</plugin>
127124
</plugins>

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

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -354,8 +354,7 @@ void shouldUseDefaultWarningLoggerWhenNotProvided() {
354354
// Assert System.err received the warning
355355
assertThat(errCapture)
356356
.hasToString(
357-
"WARN [KeyBuffer] - Some logs are not displayed because they were evicted from the buffer. Increase buffer size to store more logs in the buffer."
358-
+ System.lineSeparator());
357+
"WARN [KeyBuffer] - Some logs are not displayed because they were evicted from the buffer. Increase buffer size to store more logs in the buffer.\n");
359358
} finally {
360359
System.setErr(originalErr);
361360
}

0 commit comments

Comments
 (0)