From 72a6e5f023edcd2cc063c272d34f1487b58da617 Mon Sep 17 00:00:00 2001 From: shane Date: Mon, 2 Dec 2024 10:08:25 -0600 Subject: [PATCH] LEAF-4487 - adjustment to the query to make it only pass when using the 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 --- API-tests/formQuery_test.go | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/API-tests/formQuery_test.go b/API-tests/formQuery_test.go index 47636b91..a3593ea2 100644 --- a/API-tests/formQuery_test.go +++ b/API-tests/formQuery_test.go @@ -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) } } @@ -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) } + }