cmd/geth, cmd/puppeth: replace deprecated rpc and ws flags in tests and docs (#21317)
This commit is contained in:
@ -104,7 +104,7 @@ func TestHTTPAttachWelcome(t *testing.T) {
|
||||
port := strconv.Itoa(trulyRandInt(1024, 65536)) // Yeah, sometimes this will fail, sorry :P
|
||||
geth := runGeth(t,
|
||||
"--port", "0", "--maxpeers", "0", "--nodiscover", "--nat", "none",
|
||||
"--etherbase", coinbase, "--rpc", "--rpcport", port)
|
||||
"--etherbase", coinbase, "--http", "--http.port", port)
|
||||
defer func() {
|
||||
geth.Interrupt()
|
||||
geth.ExpectExit()
|
||||
@ -121,7 +121,7 @@ func TestWSAttachWelcome(t *testing.T) {
|
||||
|
||||
geth := runGeth(t,
|
||||
"--port", "0", "--maxpeers", "0", "--nodiscover", "--nat", "none",
|
||||
"--etherbase", coinbase, "--ws", "--wsport", port)
|
||||
"--etherbase", coinbase, "--ws", "--ws.port", port)
|
||||
defer func() {
|
||||
geth.Interrupt()
|
||||
geth.ExpectExit()
|
||||
|
Reference in New Issue
Block a user