Skip to content

Commit

Permalink
CTX fix for mocktrigger
Browse files Browse the repository at this point in the history
  • Loading branch information
smickovskid committed Oct 23, 2024
1 parent 407c01e commit 855eced
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),

Check failure on line 139 in core/capabilities/streams/mock_trigger.go

View workflow job for this annotation

GitHub Actions / lint

G115: integer overflow conversion int64 -> uint32 (gosec)
ValidFromTimestamp: uint32(timestamp),

Check failure on line 140 in core/capabilities/streams/mock_trigger.go

View workflow job for this annotation

GitHub Actions / lint

G115: integer overflow conversion int64 -> uint32 (gosec)
Expand Down

0 comments on commit 855eced

Please sign in to comment.