77 "context"
88 "encoding/hex"
99 "fmt"
10+ "github.com/celestiaorg/tastora/framework/types"
1011 "github.com/golang-jwt/jwt/v5"
1112 mathrand "math/rand"
1213 "net/http"
@@ -19,12 +20,11 @@ import (
1920
2021 "github.com/celestiaorg/tastora/framework/docker"
2122 "github.com/celestiaorg/tastora/framework/docker/evstack/reth"
22- dockerclient "github.com/moby/moby/client"
2323)
2424
2525// Test-scoped Docker client/network mapping to avoid conflicts between tests
2626var (
27- dockerClients = make (map [string ]* dockerclient. Client )
27+ dockerClients = make (map [string ]types. 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 ) (types. 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