Skip to content

Commit

Permalink
3.x - Slightly relax a unit test to avoid test ordering issues (helid…
Browse files Browse the repository at this point in the history
…on-io#8139)

* Slightly relax a unit test to check for a SimpleTimer being updated AT LEAST once instead of exactly once to avoid test ordering issues

* Copyright
  • Loading branch information
tjquinno authored Dec 12, 2023
1 parent 224f872 commit 4f2f32b
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright (c) 2022 Oracle and/or its affiliates.
* Copyright (c) 2022, 2023 Oracle and/or its affiliates.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
Expand Down Expand Up @@ -70,6 +70,6 @@ void testMethodLevelStereotype() {

SimpleTimer simpleTimer = metricRegistry.getSimpleTimer(new MetricID(StereotypeB.SIMPLE_TIMER_NAME));
assertThat("Simple timer registered via stereotype", simpleTimer, notNullValue());
assertThat("Simple timer count", simpleTimer.getCount(), equalTo(1L));
assertThat("Simple timer count", simpleTimer.getCount(), greaterThanOrEqualTo(1L));
}
}

0 comments on commit 4f2f32b

Please sign in to comment.