From 1537d331a583f0cd33c72b8a4f9ece12f0443c10 Mon Sep 17 00:00:00 2001 From: Sam Davies Date: Mon, 19 Aug 2024 13:51:35 -0400 Subject: [PATCH] Fix lint --- llo/plugin_reports_test.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/llo/plugin_reports_test.go b/llo/plugin_reports_test.go index abe1b12..7661b72 100644 --- a/llo/plugin_reports_test.go +++ b/llo/plugin_reports_test.go @@ -51,7 +51,7 @@ func Test_Reports(t *testing.T) { } encoded, err := p.OutcomeCodec.Encode(outcome) require.NoError(t, err) - rwis, err := p.Reports(2, ocr3types.Outcome(encoded)) + rwis, err := p.Reports(2, encoded) require.NoError(t, err) require.Len(t, rwis, 1) assert.Equal(t, llo.ReportInfo{LifeCycleStage: LifeCycleStageRetired, ReportFormat: llotypes.ReportFormatJSON}, rwis[0].Info) @@ -91,7 +91,7 @@ func Test_Reports(t *testing.T) { } encoded, err := p.OutcomeCodec.Encode(outcome) require.NoError(t, err) - rwis, err := p.Reports(2, ocr3types.Outcome(encoded)) + rwis, err := p.Reports(2, encoded) require.NoError(t, err) require.Len(t, rwis, 0) }) @@ -216,7 +216,7 @@ func Test_Reports(t *testing.T) { } encoded, err := p.OutcomeCodec.Encode(outcome) require.NoError(t, err) - rwis, err := p.Reports(2, ocr3types.Outcome(encoded)) + rwis, err := p.Reports(2, encoded) require.NoError(t, err) require.Len(t, rwis, 2) assert.Equal(t, `{"ConfigDigest":"0000000000000000000000000000000000000000000000000000000000000000","SeqNr":2,"ChannelID":1,"ValidAfterSeconds":100,"ObservationTimestampSeconds":200,"Values":[{"Type":0,"Value":"1.1"},{"Type":0,"Value":"2.2"},{"Type":1,"Value":"Q{Bid: 5.5, Benchmark: 4.4, Ask: 3.3}"}],"Specimen":false}`, string(rwis[0].Report))