Fail fast

This commit is contained in:
Marcin Grzejszczak
2018-10-10 12:14:21 +02:00
parent ea64155c56
commit a5c3b311ec
2 changed files with 2 additions and 2 deletions

View File

@@ -604,7 +604,7 @@ public class SleuthSpanCreatorAspectFluxTests {
protected static Long id(Tracer tracer) {
if (tracer.currentSpan() == null) {
return null;
throw new IllegalStateException("Current Span is supposed to have a value!");
}
return tracer.currentSpan().context().spanId();
}

View File

@@ -660,7 +660,7 @@ public class SleuthSpanCreatorAspectMonoTests {
protected static Long id(Tracer tracer) {
if (tracer.currentSpan() == null) {
return null;
throw new IllegalStateException("Current Span is supposed to have a value!");
}
return tracer.currentSpan().context().spanId();
}