Skip to content

Commit b374909

Browse files
committed
Fix old test to support change
Signed-off-by: Essam Eldaly <[email protected]>
1 parent d590128 commit b374909

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

CHANGELOG.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
* [ENHANCEMENT] Distributor: Add a label references validation for remote write v2 request. #7074
99
* [ENHANCEMENT] Distributor: Add count, spans, and buckets validations for native histogram. #7072
1010
* [ENHANCEMENT] Ruler: Add DecodingConcurrency config flag for Thanos Engine. #7118
11-
* [ENHANCEMENT] Query Frontend: Add query priority based on operation. #7127
11+
* [ENHANCEMENT] Query Frontend: Add query priority based on operation. #7128
1212
* [BUGFIX] Ring: Change DynamoDB KV to retry indefinitely for WatchKey. #7088
1313
* [BUGFIX] Ruler: Add XFunctions validation support. #7111
1414

pkg/querier/tripperware/query_attribute_matcher_test.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,10 +59,11 @@ func Test_rejectQueryOrSetPriorityShouldReturnDefaultPriorityIfNotEnabledOrInval
5959
path: "/api/v1/query?time=1536716898&query=",
6060
expectedError: httpgrpc.Errorf(http.StatusBadRequest, "unknown position: parse error: no expression found in input"),
6161
},
62-
"should miss if it's metadata query and only priority is enabled": {
62+
"should set priority if it's metadata query and only priority is enabled": {
6363
queryPriorityEnabled: true,
6464
queryRejectionEnabled: false,
6565
path: "/api/v1/labels?match[]",
66+
expectedPriority: 1,
6667
},
6768
"should set priority if regex match and rejection disabled": {
6869
queryPriorityEnabled: true,

0 commit comments

Comments
 (0)