Skip to content

Commit

Permalink
CTX fix for mocktrigger
Browse files Browse the repository at this point in the history
  • Loading branch information
smickovskid authored and krebernisak committed Nov 22, 2024
1 parent 43d617a commit b45f9d4
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion core/capabilities/streams/mock_trigger.go
Original file line number Diff line number Diff line change
Expand Up @@ -132,8 +132,9 @@ const baseTimestamp = 1000000000

// NOTE: duplicated from trigger_test.go
func newReport(lggr logger.Logger, feedID [32]byte, price *big.Int, timestamp int64) []byte {
ctx := context.Background()
v3Codec := reportcodec.NewReportCodec(feedID, lggr)
raw, err := v3Codec.BuildReport(v3.ReportFields{
raw, err := v3Codec.BuildReport(ctx, v3.ReportFields{
BenchmarkPrice: price,
Timestamp: uint32(timestamp),
ValidFromTimestamp: uint32(timestamp),
Expand Down

0 comments on commit b45f9d4

Please sign in to comment.