Skip to content

Commit

Permalink
Merge pull request #22 from AmitPr/fix-flaky
Browse files Browse the repository at this point in the history
Fix nondeterminism issue in IceCreamOrder test fixture
  • Loading branch information
hosuaby authored Oct 6, 2024
2 parents 7352f58 + 8d24db4 commit eb6f549
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
5 changes: 4 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
.idea/
feign-vertx.iml
target
target

# NonDex generated files
.nondex
4 changes: 2 additions & 2 deletions src/test/java/feign/vertx/testcase/domain/IceCreamOrder.java
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

import java.time.Instant;
import java.util.HashMap;
import java.util.HashSet;
import java.util.LinkedHashSet;
import java.util.Map;
import java.util.Objects;
import java.util.Set;
Expand All @@ -26,7 +26,7 @@ public IceCreamOrder() {
IceCreamOrder(final Instant orderTimestamp) {
this.id = ThreadLocalRandom.current().nextInt();
this.balls = new HashMap<>();
this.mixins = new HashSet<>();
this.mixins = new LinkedHashSet<>();
this.orderTimestamp = orderTimestamp;
}

Expand Down

0 comments on commit eb6f549

Please sign in to comment.