Skip to content

Commit

Permalink
Add test for observation error after error
Browse files Browse the repository at this point in the history
  • Loading branch information
shakuzen committed Aug 8, 2024
1 parent 73dcbca commit 982246c
Showing 1 changed file with 5 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -195,4 +195,9 @@ void startScopeErrorEventStopShouldBeValid() {
observation.stop();
}

@Test
void startErrorErrorStopShouldBeValid() {
Observation.start("test", registry).error(new RuntimeException()).error(new RuntimeException()).stop();
}

}

0 comments on commit 982246c

Please sign in to comment.