Skip to content

Commit

Permalink
Fixing rebase errors. Tested TestIntegration_MercuryV3 still runs loc…
Browse files Browse the repository at this point in the history
…ally
  • Loading branch information
patrickhuie19 committed Jun 11, 2024
1 parent cc438a9 commit 8610e22
Showing 1 changed file with 10 additions and 10 deletions.
20 changes: 10 additions & 10 deletions core/services/ocr2/plugins/mercury/integration_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -225,7 +225,7 @@ func integration_MercuryV1(t *testing.T) {
addBootstrapJob(t, bootstrapNode, chainID, verifierAddress, feed.name, feed.id)
}

createBridge := func(name string, i int, p *big.Int, borm bridges.ORM) (bridgeName string) {
createBridge := func(ctx context.Context, name string, i int, p *big.Int, borm bridges.ORM) (bridgeName string) {
bridge := httptest.NewServer(http.HandlerFunc(func(res http.ResponseWriter, req *http.Request) {
b, err := io.ReadAll(req.Body)
require.NoError(t, err)
Expand Down Expand Up @@ -259,9 +259,9 @@ func integration_MercuryV1(t *testing.T) {
// Add OCR jobs - one per feed on each node
for i, node := range nodes {
for j, feed := range feeds {
bmBridge := createBridge(fmt.Sprintf("benchmarkprice-%d", j), i, feed.baseBenchmarkPrice, node.App.BridgeORM())
askBridge := createBridge(fmt.Sprintf("ask-%d", j), i, feed.baseAsk, node.App.BridgeORM())
bidBridge := createBridge(fmt.Sprintf("bid-%d", j), i, feed.baseBid, node.App.BridgeORM())
bmBridge := createBridge(ctx, fmt.Sprintf("benchmarkprice-%d", j), i, feed.baseBenchmarkPrice, node.App.BridgeORM())
askBridge := createBridge(ctx, fmt.Sprintf("ask-%d", j), i, feed.baseAsk, node.App.BridgeORM())
bidBridge := createBridge(ctx, fmt.Sprintf("bid-%d", j), i, feed.baseBid, node.App.BridgeORM())

addV1MercuryJob(
t,
Expand Down Expand Up @@ -581,7 +581,7 @@ func integration_MercuryV2(t *testing.T) {
addBootstrapJob(t, bootstrapNode, chainID, verifierAddress, feed.name, feed.id)
}

createBridge := func(name string, i int, p *big.Int, borm bridges.ORM) (bridgeName string) {
createBridge := func(ctx context.Context, name string, i int, p *big.Int, borm bridges.ORM) (bridgeName string) {
bridge := httptest.NewServer(http.HandlerFunc(func(res http.ResponseWriter, req *http.Request) {
b, err := io.ReadAll(req.Body)
require.NoError(t, err)
Expand Down Expand Up @@ -615,7 +615,7 @@ func integration_MercuryV2(t *testing.T) {
// Add OCR jobs - one per feed on each node
for i, node := range nodes {
for j, feed := range feeds {
bmBridge := createBridge(fmt.Sprintf("benchmarkprice-%d", j), i, feed.baseBenchmarkPrice, node.App.BridgeORM())
bmBridge := createBridge(ctx, fmt.Sprintf("benchmarkprice-%d", j), i, feed.baseBenchmarkPrice, node.App.BridgeORM())

addV2MercuryJob(
t,
Expand Down Expand Up @@ -905,7 +905,7 @@ func integration_MercuryV3(t *testing.T, tlsCertFile *string, tlsKeyFile *string
addBootstrapJob(t, bootstrapNode, chainID, verifierAddress, feed.name, feed.id)
}

createBridge := func(name string, i int, p *big.Int, borm bridges.ORM) (bridgeName string) {
createBridge := func(ctx context.Context, name string, i int, p *big.Int, borm bridges.ORM) (bridgeName string) {
bridge := httptest.NewServer(http.HandlerFunc(func(res http.ResponseWriter, req *http.Request) {
var b []byte
b, err = io.ReadAll(req.Body)
Expand Down Expand Up @@ -940,9 +940,9 @@ func integration_MercuryV3(t *testing.T, tlsCertFile *string, tlsKeyFile *string
// Add OCR jobs - one per feed on each node
for i, node := range nodes {
for j, feed := range feeds {
bmBridge := createBridge(fmt.Sprintf("benchmarkprice-%d", j), i, feed.baseBenchmarkPrice, node.App.BridgeORM())
bidBridge := createBridge(fmt.Sprintf("bid-%d", j), i, feed.baseBid, node.App.BridgeORM())
askBridge := createBridge(fmt.Sprintf("ask-%d", j), i, feed.baseAsk, node.App.BridgeORM())
bmBridge := createBridge(ctx, fmt.Sprintf("benchmarkprice-%d", j), i, feed.baseBenchmarkPrice, node.App.BridgeORM())
bidBridge := createBridge(ctx, fmt.Sprintf("bid-%d", j), i, feed.baseBid, node.App.BridgeORM())
askBridge := createBridge(ctx, fmt.Sprintf("ask-%d", j), i, feed.baseAsk, node.App.BridgeORM())

addV3MercuryJob(
t,
Expand Down

0 comments on commit 8610e22

Please sign in to comment.