Skip to content

Commit

Permalink
Fix test
Browse files Browse the repository at this point in the history
  • Loading branch information
samsondav committed Nov 19, 2024
1 parent 2737a02 commit a71ebac
Showing 1 changed file with 3 additions and 6 deletions.
9 changes: 3 additions & 6 deletions core/services/ocrcommon/telemetry_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down Expand Up @@ -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{}{}
}

Expand Down

0 comments on commit a71ebac

Please sign in to comment.