Skip to content

Commit

Permalink
cmd/devp2p/internal/ethtest: remove hard-coded port
Browse files Browse the repository at this point in the history
  • Loading branch information
fjl committed Dec 14, 2023
1 parent e8ffcda commit 08c533c
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions cmd/devp2p/internal/ethtest/suite_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -47,8 +47,6 @@ func makeJWTSecret() (string, [32]byte, error) {
}

func TestEthSuite(t *testing.T) {
t.Parallel()

jwtPath, secret, err := makeJWTSecret()
if err != nil {
t.Fatalf("could not make jwt secret: %v", err)
Expand All @@ -74,8 +72,6 @@ func TestEthSuite(t *testing.T) {
}

func TestSnapSuite(t *testing.T) {
t.Parallel()

jwtPath, secret, err := makeJWTSecret()
if err != nil {
t.Fatalf("could not make jwt secret: %v", err)
Expand Down Expand Up @@ -104,7 +100,7 @@ func TestSnapSuite(t *testing.T) {
func runGeth(dir string, jwtPath string) (*node.Node, error) {
stack, err := node.New(&node.Config{
AuthAddr: "127.0.0.1",
AuthPort: 18551,
AuthPort: 0,
P2P: p2p.Config{
ListenAddr: "127.0.0.1:0",
NoDiscovery: true,
Expand Down

0 comments on commit 08c533c

Please sign in to comment.