Skip to content

Commit

Permalink
LEAF-4487 - adjustment to the query to make it only pass when using t…
Browse files Browse the repository at this point in the history
…he correct docker config and code, previus iterations allowed for passage if not run on the proper version since at the time we were unsure how the testing process would function
  • Loading branch information
shane committed Dec 2, 2024
1 parent 094343d commit 72a6e5f
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions API-tests/formQuery_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -292,7 +292,7 @@ func TestLargeFormQuery_SmallQuery(t *testing.T) {
t.Errorf("Record 958 should be readable")
}

if v, ok := res.Header["Leaf_large_queries"]; ok && v[0] != "pass_onto_large_query_server" {
if res.Header.Get("Leaf_large_queries") != "pass_onto_large_query_server" {
t.Errorf("bad headers: %v", res.Header)
}
}
Expand All @@ -311,7 +311,8 @@ func TestLargeFormQuery_LargeQuery(t *testing.T) {
t.Errorf("Record 958 should be readable")
}

if v, ok := res.Header["Leaf_large_queries"]; ok && v[0] != "process_ran_on_large_query_server" {
if res.Header.Get("Leaf_large_queries") != "process_ran_on_large_query_server" {
t.Errorf("bad headers: %v", res.Header)
}

}

0 comments on commit 72a6e5f

Please sign in to comment.