Skip to content

Commit

Permalink
Let TestSpanExporter when we have at least X elements included
Browse files Browse the repository at this point in the history
The current condition is weird because we end up saying we want at least
1, and it only returns when there are 2.
  • Loading branch information
gsmet committed Jan 17, 2025
1 parent 9cd2b13 commit 081c7b1
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ public void assertSpanCount(int spanCount) {

public void assertSpanAtLeast(int spanCount) {
await().atMost(5, SECONDS).untilAsserted(
() -> assertTrue(spanCount < finishedSpanItems.size(), "Spans: " + finishedSpanItems.toString()));
() -> assertTrue(spanCount <= finishedSpanItems.size(), "Spans: " + finishedSpanItems.toString()));
}

public void reset() {
Expand Down

0 comments on commit 081c7b1

Please sign in to comment.