From 05e0820be0046538f9f3b84ba6926ae8bdd29982 Mon Sep 17 00:00:00 2001 From: dimkouv Date: Mon, 4 Nov 2024 18:51:31 +0200 Subject: [PATCH] check query against max query len --- commit/factory_test.go | 1 + 1 file changed, 1 insertion(+) diff --git a/commit/factory_test.go b/commit/factory_test.go index 08faabe64..636054b7a 100644 --- a/commit/factory_test.go +++ b/commit/factory_test.go @@ -68,6 +68,7 @@ func Test_maxQueryLength(t *testing.T) { // We set twice the size, for extra safety while making breaking changes between oracle versions. assert.Equal(t, 2*len(b), maxQueryLength) + require.Less(t, maxQueryLength, ocr3types.MaxMaxQueryLength) } func Test_maxObservationLength(t *testing.T) {