From 32912f9b8bd24f5aaf0fe68fe44ca775acdcb775 Mon Sep 17 00:00:00 2001 From: Daniel Thorn Date: Wed, 9 Oct 2024 15:53:16 -0700 Subject: [PATCH] fix test with minor behavior change --- socorro/tests/external/es/test_supersearch.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/socorro/tests/external/es/test_supersearch.py b/socorro/tests/external/es/test_supersearch.py index 10056854c5..30d2924cb5 100644 --- a/socorro/tests/external/es/test_supersearch.py +++ b/socorro/tests/external/es/test_supersearch.py @@ -491,7 +491,9 @@ def test_get_with_bool_operators(self, es_helper): assert resp["total"] == 2 assert len(resp["hits"]) == 2 - assert not resp["hits"][0]["accessibility"] + # NOTE(relud) In es 1.4 columns missing in the crash would be returned as None, + # but after upgrading to es 8 they are missing in the response. + assert not resp["hits"][0].get("accessibility", None) def test_get_with_combined_operators(self, es_helper): now = utc_now()