Skip to content
This repository has been archived by the owner on Dec 12, 2023. It is now read-only.

Commit

Permalink
refactor: use common mock-avs package for tests
Browse files Browse the repository at this point in the history
  • Loading branch information
adriantpaez authored and AntiD2ta committed Sep 15, 2023
1 parent bb594a5 commit ea06253
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions internal/package_handler/package_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -15,11 +15,6 @@ import (
"github.com/stretchr/testify/require"
)

const (
mockAvsPkgLatestVersion = "v5.4.0"
mockAvsPkgRepo = "https://github.com/NethermindEth/mock-avs-pkg.git"
)

func TestNewPackageHandlerFromURL(t *testing.T) {
type testCase struct {
name string
Expand Down Expand Up @@ -633,7 +628,7 @@ func TestLatestVersion(t *testing.T) {

func TestCommitPrecedence(t *testing.T) {
repoDir := t.TempDir()
err := exec.Command("git", "clone", "--single-branch", "-b", mockAvsPkgLatestVersion, mockAvsPkgRepo, repoDir).Run()
err := exec.Command("git", "clone", "--single-branch", "-b", common.MockAvsPkg.Version(), common.MockAvsPkg.Repo(), repoDir).Run()
require.NoError(t, err, "error cloning the mock tap repo")

ts := []struct {
Expand Down

0 comments on commit ea06253

Please sign in to comment.