Skip to content

Commit 452317b

Browse files
committed
update Docker client usage in test helpers
1 parent 4ba3628 commit 452317b

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

execution/evm/test/go.mod

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@ require (
77
github.com/ethereum/go-ethereum v1.16.7
88
github.com/evstack/ev-node/execution/evm v0.0.0-00010101000000-000000000000
99
github.com/golang-jwt/jwt/v5 v5.3.0
10-
github.com/moby/moby v27.5.1+incompatible
1110
github.com/stretchr/testify v1.11.1
1211
)
1312

@@ -116,6 +115,7 @@ require (
116115
github.com/minio/sha256-simd v1.0.0 // indirect
117116
github.com/mitchellh/mapstructure v1.5.0 // indirect
118117
github.com/moby/docker-image-spec v1.3.1 // indirect
118+
github.com/moby/moby v27.5.1+incompatible // indirect
119119
github.com/moby/sys/sequential v0.6.0 // indirect
120120
github.com/mtibben/percent v0.2.1 // indirect
121121
github.com/munnerz/goautoneg v0.0.0-20191010083416-a7dc8b61c822 // indirect

execution/evm/test/test_helpers.go

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -19,12 +19,12 @@ import (
1919

2020
"github.com/celestiaorg/tastora/framework/docker"
2121
"github.com/celestiaorg/tastora/framework/docker/evstack/reth"
22-
dockerclient "github.com/moby/moby/client"
22+
tastoratypes "github.com/celestiaorg/tastora/framework/types"
2323
)
2424

2525
// Test-scoped Docker client/network mapping to avoid conflicts between tests
2626
var (
27-
dockerClients = make(map[string]*dockerclient.Client)
27+
dockerClients = make(map[string]tastoratypes.TastoraDockerClient)
2828
dockerNetworks = make(map[string]string)
2929
dockerMutex sync.RWMutex
3030
)
@@ -41,7 +41,7 @@ func randomString(n int) string {
4141
}
4242

4343
// getTestScopedDockerSetup returns a Docker client and network ID that are scoped to the specific test.
44-
func getTestScopedDockerSetup(t *testing.T) (*dockerclient.Client, string) {
44+
func getTestScopedDockerSetup(t *testing.T) (tastoratypes.TastoraDockerClient, string) {
4545
t.Helper()
4646

4747
testKey := t.Name()
@@ -50,7 +50,7 @@ func getTestScopedDockerSetup(t *testing.T) (*dockerclient.Client, string) {
5050

5151
dockerCli, exists := dockerClients[testKey]
5252
if !exists {
53-
cli, netID := docker.DockerSetup(t)
53+
cli, netID := docker.Setup(t)
5454
dockerClients[testKey] = cli
5555
dockerNetworks[testKey] = netID
5656
dockerCli = cli

0 commit comments

Comments
 (0)