Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
G
Geth-Modification
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
张蕾
Geth-Modification
Commits
433937fb
Commit
433937fb
authored
Jan 06, 2020
by
Guillaume Ballet
Committed by
Felix Lange
Jan 06, 2020
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
cmd/geth: fix forked exe leak in console tests (#20480)
parent
2eeb8dd2
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
8 deletions
+13
-8
consolecmd_test.go
cmd/geth/consolecmd_test.go
+13
-8
No files found.
cmd/geth/consolecmd_test.go
View file @
433937fb
...
...
@@ -87,11 +87,14 @@ func TestIPCAttachWelcome(t *testing.T) {
"--port"
,
"0"
,
"--maxpeers"
,
"0"
,
"--nodiscover"
,
"--nat"
,
"none"
,
"--etherbase"
,
coinbase
,
"--shh"
,
"--ipcpath"
,
ipc
)
defer
func
()
{
geth
.
Interrupt
()
geth
.
ExpectExit
()
}()
waitForEndpoint
(
t
,
ipc
,
3
*
time
.
Second
)
testAttachWelcome
(
t
,
geth
,
"ipc:"
+
ipc
,
ipcAPIs
)
geth
.
Interrupt
()
geth
.
ExpectExit
()
}
func
TestHTTPAttachWelcome
(
t
*
testing
.
T
)
{
...
...
@@ -100,13 +103,14 @@ func TestHTTPAttachWelcome(t *testing.T) {
geth
:=
runGeth
(
t
,
"--port"
,
"0"
,
"--maxpeers"
,
"0"
,
"--nodiscover"
,
"--nat"
,
"none"
,
"--etherbase"
,
coinbase
,
"--rpc"
,
"--rpcport"
,
port
)
defer
func
()
{
geth
.
Interrupt
()
geth
.
ExpectExit
()
}()
endpoint
:=
"http://127.0.0.1:"
+
port
waitForEndpoint
(
t
,
endpoint
,
3
*
time
.
Second
)
testAttachWelcome
(
t
,
geth
,
endpoint
,
httpAPIs
)
geth
.
Interrupt
()
geth
.
ExpectExit
()
}
func
TestWSAttachWelcome
(
t
*
testing
.
T
)
{
...
...
@@ -116,13 +120,14 @@ func TestWSAttachWelcome(t *testing.T) {
geth
:=
runGeth
(
t
,
"--port"
,
"0"
,
"--maxpeers"
,
"0"
,
"--nodiscover"
,
"--nat"
,
"none"
,
"--etherbase"
,
coinbase
,
"--ws"
,
"--wsport"
,
port
)
defer
func
()
{
geth
.
Interrupt
()
geth
.
ExpectExit
()
}()
endpoint
:=
"ws://127.0.0.1:"
+
port
waitForEndpoint
(
t
,
endpoint
,
3
*
time
.
Second
)
testAttachWelcome
(
t
,
geth
,
endpoint
,
httpAPIs
)
geth
.
Interrupt
()
geth
.
ExpectExit
()
}
func
testAttachWelcome
(
t
*
testing
.
T
,
geth
*
testgeth
,
endpoint
,
apis
string
)
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment