From 982246cf70cabb1874e07d2383568ba7f634e6e4 Mon Sep 17 00:00:00 2001 From: Tommy Ludwig <8924140+shakuzen@users.noreply.github.com> Date: Thu, 8 Aug 2024 16:29:03 +0900 Subject: [PATCH] Add test for observation error after error --- .../observation/tck/ObservationValidatorTests.java | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/micrometer-observation-test/src/test/java/io/micrometer/observation/tck/ObservationValidatorTests.java b/micrometer-observation-test/src/test/java/io/micrometer/observation/tck/ObservationValidatorTests.java index 15149286db..0206d7eb82 100644 --- a/micrometer-observation-test/src/test/java/io/micrometer/observation/tck/ObservationValidatorTests.java +++ b/micrometer-observation-test/src/test/java/io/micrometer/observation/tck/ObservationValidatorTests.java @@ -195,4 +195,9 @@ void startScopeErrorEventStopShouldBeValid() { observation.stop(); } + @Test + void startErrorErrorStopShouldBeValid() { + Observation.start("test", registry).error(new RuntimeException()).error(new RuntimeException()).stop(); + } + }