File tree Expand file tree Collapse file tree 1 file changed +5
-2
lines changed
server/src/test/java/org/elasticsearch/action/search Expand file tree Collapse file tree 1 file changed +5
-2
lines changed Original file line number Diff line number Diff line change @@ -138,13 +138,16 @@ private static void assertAttributes(
138138 assertNull (attributes .get (SearchRequestAttributesExtractor .KNN_ATTRIBUTE ));
139139 }
140140 if (rangeOnTimestamp && rangeOnEventIngested ) {
141- assertEquals ("both" , attributes .get (SearchRequestAttributesExtractor .TIME_RANGE_FILTER_FIELD_ATTRIBUTE ));
141+ assertEquals (
142+ "@timestamp_AND_event.ingested" ,
143+ attributes .get (SearchRequestAttributesExtractor .TIME_RANGE_FILTER_FIELD_ATTRIBUTE )
144+ );
142145 } else if (rangeOnTimestamp ) {
143146 assertEquals ("@timestamp" , attributes .get (SearchRequestAttributesExtractor .TIME_RANGE_FILTER_FIELD_ATTRIBUTE ));
144147 } else if (rangeOnEventIngested ) {
145148 assertEquals ("event.ingested" , attributes .get (SearchRequestAttributesExtractor .TIME_RANGE_FILTER_FIELD_ATTRIBUTE ));
146149 } else {
147- assertEquals ( "none" , attributes .get (SearchRequestAttributesExtractor .TIME_RANGE_FILTER_FIELD_ATTRIBUTE ));
150+ assertNull ( attributes .get (SearchRequestAttributesExtractor .TIME_RANGE_FILTER_FIELD_ATTRIBUTE ));
148151 }
149152 }
150153
You can’t perform that action at this time.
0 commit comments