Skip to content

Commit

Permalink
refactor test log messages
Browse files Browse the repository at this point in the history
  • Loading branch information
yotamloe committed Jan 2, 2025
1 parent 980fcd9 commit 2e83fe0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/test/java/io/logz/logback/LogzioLogbackAppenderTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ public void openTelemetryContext_Enabled() {
Tracer tracer = openTelemetry.getTracer("test");
Span span = tracer.spanBuilder("test").startSpan();
try (Scope scope = span.makeCurrent()) {
String message = "Test log";
String message = "Simple log line - "+random(5);
testLogger.info(message);
sleepSeconds(drainTimeout * 2);
MockLogzioBulkListener.LogRequest logRequest = mockListener.assertLogReceivedByMessage(message);
Expand Down Expand Up @@ -157,7 +157,7 @@ public void openTelemetryContext_Disabled() {
Span span = tracer.spanBuilder("test").startSpan();

try (Scope scope = span.makeCurrent()) {
String message = "Test log";
String message = "Simple log line - "+random(5);
testLogger.info(message);

sleepSeconds(drainTimeout * 2);
Expand Down

0 comments on commit 2e83fe0

Please sign in to comment.