Skip to content

Commit

Permalink
fix ci
Browse files Browse the repository at this point in the history
  • Loading branch information
mask-pp committed Jul 5, 2024
1 parent 3b5031b commit f47460e
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,15 @@ package http

import (
"fmt"
"github.com/docker/distribution/context"
"net/http"
"net/http/httptest"
"testing"

"github.com/cyberhorsey/webutils/testutils"
"github.com/docker/distribution/context"
"github.com/labstack/echo/v4"
"github.com/stretchr/testify/assert"

guardianproverhealthcheck "github.com/taikoxyz/taiko-mono/packages/guardian-prover-health-check"
)

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ func TestIntegration_HealthCheck_Save(t *testing.T) {

for _, tt := range tests {
t.Run(tt.name, func(t *testing.T) {
err = healthCheckRepo.Save(tt.opts)
err = healthCheckRepo.Save(context.Background(), &tt.opts)
assert.Equal(t, tt.wantErr, err)

req, err := http.NewRequest(http.MethodGet, "/healtcheck", nil)
Expand All @@ -91,7 +91,7 @@ func TestIntegration_HealthCheck_UptimeByGuardianProverId(t *testing.T) {

assert.Equal(t, nil, err)

err = healthCheckRepo.Save(guardianproverhealthcheck.SaveHealthCheckOpts{
err = healthCheckRepo.Save(context.Background(), &guardianproverhealthcheck.SaveHealthCheckOpts{
GuardianProverID: 1,
Alive: true,
ExpectedAddress: "0x123",
Expand All @@ -103,7 +103,7 @@ func TestIntegration_HealthCheck_UptimeByGuardianProverId(t *testing.T) {

assert.Equal(t, err, nil)

err = healthCheckRepo.Save(guardianproverhealthcheck.SaveHealthCheckOpts{
err = healthCheckRepo.Save(context.Background(), &guardianproverhealthcheck.SaveHealthCheckOpts{
GuardianProverID: 1,
Alive: true,
ExpectedAddress: "0x123",
Expand Down

0 comments on commit f47460e

Please sign in to comment.