Skip to content

Commit

Permalink
Fix lint
Browse files Browse the repository at this point in the history
  • Loading branch information
samsondav committed Aug 19, 2024
1 parent fee86f4 commit 1537d33
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions llo/plugin_reports_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down Expand Up @@ -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)
})
Expand Down Expand Up @@ -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))
Expand Down

0 comments on commit 1537d33

Please sign in to comment.