Skip to content
This repository has been archived by the owner on Jul 1, 2022. It is now read-only.

Commit

Permalink
Minor fixes.
Browse files Browse the repository at this point in the history
  • Loading branch information
Nikhil Bysani committed Jun 29, 2018
1 parent c24752e commit 5868151
Showing 1 changed file with 4 additions and 8 deletions.
12 changes: 4 additions & 8 deletions jaeger-core/src/test/java/io/jaegertracing/JaegerSpanTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -328,11 +328,7 @@ public void testLogAfterFinish() {

@Test
public void testLogWithTimestampAfterFinish() {
Map<String, String> unexpectedFields = new HashMap<String, String>() {
{
put("foo", "bar");
}
};
Map<String, String> unexpectedFields = Collections.singletonMap("foo", "bar");

jaegerSpan.finish();
jaegerSpan.log(2222, unexpectedFields);
Expand Down Expand Up @@ -496,7 +492,7 @@ public void testNoExpandExceptionLogs() {
.withSampler(new ConstSampler(true))
.build();

JaegerSpan jaegerSpan = (JaegerSpan)tracer.buildSpan("foo").start();
JaegerSpan jaegerSpan = tracer.buildSpan("foo").start();

RuntimeException ex = new RuntimeException();
Map<String, Object> logs = new HashMap<>();
Expand All @@ -512,7 +508,7 @@ public void testNoExpandExceptionLogs() {
@Test
public void testNoLoggingingStackTracesOnDebug() {
log.setEnabledLevels(Level.WARN);
JaegerSpan jaegerSpan = (JaegerSpan)tracer.buildSpan("foo").start();
JaegerSpan jaegerSpan = tracer.buildSpan("foo").start();
jaegerSpan.finish();
jaegerSpan.finish();

Expand All @@ -526,7 +522,7 @@ public void testNoLoggingingStackTracesOnDebug() {
@Test
public void testLoggingingStackTracesOnDebug() {
log.setEnabledLevels(Level.WARN, Level.DEBUG);
JaegerSpan jaegerSpan = (JaegerSpan)tracer.buildSpan("foo").start();
JaegerSpan jaegerSpan = tracer.buildSpan("foo").start();
jaegerSpan.finish();
jaegerSpan.finish();

Expand Down

0 comments on commit 5868151

Please sign in to comment.