Skip to content

Commit

Permalink
[fix](regression) multi-contains in ExplainAction print undefined str…
Browse files Browse the repository at this point in the history
…ing (#46095)

### What problem does this PR solve?
  • Loading branch information
englefly authored Dec 30, 2024
1 parent 0348b33 commit 266a224
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,7 @@ class ExplainAction implements SuiteAction {
for (Map.Entry entry : multiContainsStrings) {
int count = explainString.count(entry.key);
if (count != entry.value) {
String msg = ("Explain and check failed, expect multiContains '${string}' , '${entry.value}' times, actural '${count}' times."
String msg = ("Explain and check failed, expect multiContains '${entry.key}' , '${entry.value}' times, actural '${count}' times."
+ "Actual explain string is:\n${explainString}").toString()
def t = new IllegalStateException(msg)
throw t
Expand Down

0 comments on commit 266a224

Please sign in to comment.