Skip to content

Commit

Permalink
ESQL: Fix TOP agg tests expecting lists for single elements (elastic#…
Browse files Browse the repository at this point in the history
  • Loading branch information
ivancea authored Jul 10, 2024
1 parent 8e39f01 commit 6a50c45
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -241,7 +241,7 @@ private static TestCaseSupplier makeSupplier(
),
"Top[field=Attribute[channel=0], limit=Attribute[channel=1], order=Attribute[channel=2]]",
fieldSupplier.type(),
equalTo(expected)
equalTo(expected.size() == 1 ? expected.get(0) : expected)
);
});
}
Expand Down

0 comments on commit 6a50c45

Please sign in to comment.