From a71ebac6b281303b3b3814e5ab8f4db7dfc2b696 Mon Sep 17 00:00:00 2001 From: Sam Davies Date: Tue, 19 Nov 2024 11:55:12 -0500 Subject: [PATCH] Fix test --- core/services/ocrcommon/telemetry_test.go | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/core/services/ocrcommon/telemetry_test.go b/core/services/ocrcommon/telemetry_test.go index ae682524e0f..5d9dd91ef96 100644 --- a/core/services/ocrcommon/telemetry_test.go +++ b/core/services/ocrcommon/telemetry_test.go @@ -659,8 +659,7 @@ func TestGetPricesFromBridgeTaskByOrder(t *testing.T) { require.Equal(t, float64(0), benchmarkPrice) require.Equal(t, float64(0), bid) require.Equal(t, float64(0), ask) - require.Equal(t, 1, logs.Len()) - require.Contains(t, logs.All()[0].Message, "cannot parse enhanced EA telemetry") + require.Equal(t, 0, logs.Len()) tt := trrsMercuryV1[:2] getPricesFromBridgeTask(lggr, trrsMercuryV1[0], tt, 1) @@ -1140,11 +1139,9 @@ func TestCollectMercuryEnhancedTelemetryV2(t *testing.T) { } wg.Wait() - require.Equal(t, 3, logs.Len()) + require.Equal(t, 1, logs.Len()) fmt.Println(logs.All()) - require.Contains(t, logs.All()[0].Message, "cannot parse enhanced EA telemetry bid price") - require.Contains(t, logs.All()[1].Message, "cannot parse EA telemetry") - require.Contains(t, logs.All()[2].Message, "cannot parse enhanced EA telemetry bid price") + require.Contains(t, logs.All()[0].Message, "cannot parse EA telemetry") chDone <- struct{}{} }