Skip to content

Commit

Permalink
test: Deflakify TestGatherTestInformation (eclipse#1214)
Browse files Browse the repository at this point in the history
Signed-off-by: André Silva <andre15andre@hotmail.com>
  • Loading branch information
andre15silva committed Apr 16, 2021
1 parent 7c6a52f commit 9d537de
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,8 @@ public boolean equals(Object o) {
if (o == null || getClass() != o.getClass()) return false;
BugType bugType = (BugType) o;
return name.equals(bugType.name) &&
detail.replace("\n\t", " ").equals(bugType.detail.replace("\n\t", " "));
detail.replaceAll("\\s+", "")
.equals(bugType.detail.replaceAll("\\s+", ""));
}

@Override
Expand Down

0 comments on commit 9d537de

Please sign in to comment.