diff --git a/api/events/src/test/java/io/opentelemetry/api/events/DefaultEventEmitterTest.java b/api/events/src/test/java/io/opentelemetry/api/events/DefaultEventEmitterTest.java index a94b6bf2ed3..3497dfd488d 100644 --- a/api/events/src/test/java/io/opentelemetry/api/events/DefaultEventEmitterTest.java +++ b/api/events/src/test/java/io/opentelemetry/api/events/DefaultEventEmitterTest.java @@ -27,6 +27,7 @@ void emit() { void emitWithTimestamp() { EventEmitter emitter = DefaultEventEmitter.getInstance(); Attributes attributes = Attributes.builder().put("key1", "value1").build(); - assertThatCode(() -> emitter.emit(System.nanoTime(), "event-name", attributes)); + assertThatCode(() -> emitter.emit(System.nanoTime(), "event-name", attributes)) + .doesNotThrowAnyException(); } }