Skip to content

Commit

Permalink
Fixes CI
Browse files Browse the repository at this point in the history
  • Loading branch information
vyzaldysanchez committed Nov 14, 2024
1 parent 331bced commit 1c30ee5
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
4 changes: 3 additions & 1 deletion core/capabilities/compute/compute_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ import (
cappkg "github.com/smartcontractkit/chainlink-common/pkg/capabilities"
"github.com/smartcontractkit/chainlink-common/pkg/utils/tests"
"github.com/smartcontractkit/chainlink-common/pkg/values"

corecapabilities "github.com/smartcontractkit/chainlink/v2/core/capabilities"
"github.com/smartcontractkit/chainlink/v2/core/capabilities/webapi"
"github.com/smartcontractkit/chainlink/v2/core/services/gateway/api"
Expand Down Expand Up @@ -60,7 +61,8 @@ func setup(t *testing.T, config Config) testHarness {
connectorHandler, err := webapi.NewOutgoingConnectorHandler(connector, config.ServiceConfig, ghcapabilities.MethodComputeAction, log)
require.NoError(t, err)

compute := NewAction(config, log, registry, connectorHandler, idGeneratorFn)
compute, err := NewAction(config, log, registry, connectorHandler, idGeneratorFn)
require.NoError(t, err)
compute.modules.clock = clockwork.NewFakeClock()

return testHarness{
Expand Down
6 changes: 4 additions & 2 deletions core/services/workflows/engine_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -1448,7 +1448,8 @@ func TestEngine_WithCustomComputeStep(t *testing.T) {
require.NoError(t, err)

idGeneratorFn := func() string { return "validRequestID" }
compute := compute.NewAction(cfg, log, reg, handler, idGeneratorFn)
compute, err := compute.NewAction(cfg, log, reg, handler, idGeneratorFn)
require.NoError(t, err)
require.NoError(t, compute.Start(ctx))
defer compute.Close()

Expand Down Expand Up @@ -1513,7 +1514,8 @@ func TestEngine_CustomComputePropagatesBreaks(t *testing.T) {
require.NoError(t, err)

idGeneratorFn := func() string { return "validRequestID" }
compute := compute.NewAction(cfg, log, reg, handler, idGeneratorFn)
compute, err := compute.NewAction(cfg, log, reg, handler, idGeneratorFn)
require.NoError(t, err)
require.NoError(t, compute.Start(ctx))
defer compute.Close()

Expand Down

0 comments on commit 1c30ee5

Please sign in to comment.