Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
N
nebula
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
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
exchain
nebula
Commits
b785bea5
Unverified
Commit
b785bea5
authored
Mar 31, 2022
by
Mark Tyneway
Committed by
GitHub
Mar 31, 2022
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #2392 from ethereum-optimism/fix/l2geth-skip-cmd-tests
l2geth: skip flaky accountcmd tests
parents
c801cab2
1a28ba5f
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
18 additions
and
0 deletions
+18
-0
light-bugs-teach.md
.changeset/light-bugs-teach.md
+5
-0
accountcmd_test.go
l2geth/cmd/geth/accountcmd_test.go
+13
-0
No files found.
.changeset/light-bugs-teach.md
0 → 100644
View file @
b785bea5
---
'
@eth-optimism/l2geth'
:
patch
---
Skip account cmd tests
l2geth/cmd/geth/accountcmd_test.go
View file @
b785bea5
...
@@ -48,6 +48,7 @@ func TestAccountListEmpty(t *testing.T) {
...
@@ -48,6 +48,7 @@ func TestAccountListEmpty(t *testing.T) {
}
}
func
TestAccountList
(
t
*
testing
.
T
)
{
func
TestAccountList
(
t
*
testing
.
T
)
{
t
.
Skip
()
datadir
:=
tmpDatadirWithKeystore
(
t
)
datadir
:=
tmpDatadirWithKeystore
(
t
)
geth
:=
runGeth
(
t
,
"account"
,
"list"
,
"--datadir"
,
datadir
)
geth
:=
runGeth
(
t
,
"account"
,
"list"
,
"--datadir"
,
datadir
)
defer
geth
.
ExpectExit
()
defer
geth
.
ExpectExit
()
...
@@ -67,6 +68,7 @@ Account #2: {289d485d9771714cce91d3393d764e1311907acc} keystore://{{.Datadir}}/k
...
@@ -67,6 +68,7 @@ Account #2: {289d485d9771714cce91d3393d764e1311907acc} keystore://{{.Datadir}}/k
}
}
func
TestAccountNew
(
t
*
testing
.
T
)
{
func
TestAccountNew
(
t
*
testing
.
T
)
{
t
.
Skip
()
geth
:=
runGeth
(
t
,
"account"
,
"new"
,
"--lightkdf"
)
geth
:=
runGeth
(
t
,
"account"
,
"new"
,
"--lightkdf"
)
defer
geth
.
ExpectExit
()
defer
geth
.
ExpectExit
()
geth
.
Expect
(
`
geth
.
Expect
(
`
...
@@ -89,6 +91,7 @@ Path of the secret key file: .*UTC--.+--[0-9a-f]{40}
...
@@ -89,6 +91,7 @@ Path of the secret key file: .*UTC--.+--[0-9a-f]{40}
}
}
func
TestAccountNewBadRepeat
(
t
*
testing
.
T
)
{
func
TestAccountNewBadRepeat
(
t
*
testing
.
T
)
{
t
.
Skip
()
geth
:=
runGeth
(
t
,
"account"
,
"new"
,
"--lightkdf"
)
geth
:=
runGeth
(
t
,
"account"
,
"new"
,
"--lightkdf"
)
defer
geth
.
ExpectExit
()
defer
geth
.
ExpectExit
()
geth
.
Expect
(
`
geth
.
Expect
(
`
...
@@ -101,6 +104,7 @@ Fatal: Passwords do not match
...
@@ -101,6 +104,7 @@ Fatal: Passwords do not match
}
}
func
TestAccountUpdate
(
t
*
testing
.
T
)
{
func
TestAccountUpdate
(
t
*
testing
.
T
)
{
t
.
Skip
()
datadir
:=
tmpDatadirWithKeystore
(
t
)
datadir
:=
tmpDatadirWithKeystore
(
t
)
geth
:=
runGeth
(
t
,
"account"
,
"update"
,
geth
:=
runGeth
(
t
,
"account"
,
"update"
,
"--datadir"
,
datadir
,
"--lightkdf"
,
"--datadir"
,
datadir
,
"--lightkdf"
,
...
@@ -117,6 +121,7 @@ Repeat password: {{.InputLine "foobar2"}}
...
@@ -117,6 +121,7 @@ Repeat password: {{.InputLine "foobar2"}}
}
}
func
TestWalletImport
(
t
*
testing
.
T
)
{
func
TestWalletImport
(
t
*
testing
.
T
)
{
t
.
Skip
()
geth
:=
runGeth
(
t
,
"wallet"
,
"import"
,
"--lightkdf"
,
"testdata/guswallet.json"
)
geth
:=
runGeth
(
t
,
"wallet"
,
"import"
,
"--lightkdf"
,
"testdata/guswallet.json"
)
defer
geth
.
ExpectExit
()
defer
geth
.
ExpectExit
()
geth
.
Expect
(
`
geth
.
Expect
(
`
...
@@ -132,6 +137,7 @@ Address: {d4584b5f6229b7be90727b0fc8c6b91bb427821f}
...
@@ -132,6 +137,7 @@ Address: {d4584b5f6229b7be90727b0fc8c6b91bb427821f}
}
}
func
TestWalletImportBadPassword
(
t
*
testing
.
T
)
{
func
TestWalletImportBadPassword
(
t
*
testing
.
T
)
{
t
.
Skip
()
geth
:=
runGeth
(
t
,
"wallet"
,
"import"
,
"--lightkdf"
,
"testdata/guswallet.json"
)
geth
:=
runGeth
(
t
,
"wallet"
,
"import"
,
"--lightkdf"
,
"testdata/guswallet.json"
)
defer
geth
.
ExpectExit
()
defer
geth
.
ExpectExit
()
geth
.
Expect
(
`
geth
.
Expect
(
`
...
@@ -142,6 +148,7 @@ Fatal: could not decrypt key with given password
...
@@ -142,6 +148,7 @@ Fatal: could not decrypt key with given password
}
}
func
TestUnlockFlag
(
t
*
testing
.
T
)
{
func
TestUnlockFlag
(
t
*
testing
.
T
)
{
t
.
Skip
()
datadir
:=
tmpDatadirWithKeystore
(
t
)
datadir
:=
tmpDatadirWithKeystore
(
t
)
geth
:=
runGeth
(
t
,
geth
:=
runGeth
(
t
,
"--datadir"
,
datadir
,
"--nat"
,
"none"
,
"--nodiscover"
,
"--maxpeers"
,
"0"
,
"--port"
,
"0"
,
"--datadir"
,
datadir
,
"--nat"
,
"none"
,
"--nodiscover"
,
"--maxpeers"
,
"0"
,
"--port"
,
"0"
,
...
@@ -166,6 +173,7 @@ Password: {{.InputLine "foobar"}}
...
@@ -166,6 +173,7 @@ Password: {{.InputLine "foobar"}}
}
}
func
TestUnlockFlagWrongPassword
(
t
*
testing
.
T
)
{
func
TestUnlockFlagWrongPassword
(
t
*
testing
.
T
)
{
t
.
Skip
()
datadir
:=
tmpDatadirWithKeystore
(
t
)
datadir
:=
tmpDatadirWithKeystore
(
t
)
geth
:=
runGeth
(
t
,
geth
:=
runGeth
(
t
,
"--datadir"
,
datadir
,
"--nat"
,
"none"
,
"--nodiscover"
,
"--maxpeers"
,
"0"
,
"--port"
,
"0"
,
"--datadir"
,
datadir
,
"--nat"
,
"none"
,
"--nodiscover"
,
"--maxpeers"
,
"0"
,
"--port"
,
"0"
,
...
@@ -185,6 +193,7 @@ Fatal: Failed to unlock account f466859ead1932d743d622cb74fc058882e8648a (could
...
@@ -185,6 +193,7 @@ Fatal: Failed to unlock account f466859ead1932d743d622cb74fc058882e8648a (could
// https://github.com/ethereum/go-ethereum/issues/1785
// https://github.com/ethereum/go-ethereum/issues/1785
func
TestUnlockFlagMultiIndex
(
t
*
testing
.
T
)
{
func
TestUnlockFlagMultiIndex
(
t
*
testing
.
T
)
{
t
.
Skip
()
datadir
:=
tmpDatadirWithKeystore
(
t
)
datadir
:=
tmpDatadirWithKeystore
(
t
)
geth
:=
runGeth
(
t
,
geth
:=
runGeth
(
t
,
"--datadir"
,
datadir
,
"--nat"
,
"none"
,
"--nodiscover"
,
"--maxpeers"
,
"0"
,
"--port"
,
"0"
,
"--datadir"
,
datadir
,
"--nat"
,
"none"
,
"--nodiscover"
,
"--maxpeers"
,
"0"
,
"--port"
,
"0"
,
...
@@ -212,6 +221,7 @@ Password: {{.InputLine "foobar"}}
...
@@ -212,6 +221,7 @@ Password: {{.InputLine "foobar"}}
}
}
func
TestUnlockFlagPasswordFile
(
t
*
testing
.
T
)
{
func
TestUnlockFlagPasswordFile
(
t
*
testing
.
T
)
{
t
.
Skip
()
datadir
:=
tmpDatadirWithKeystore
(
t
)
datadir
:=
tmpDatadirWithKeystore
(
t
)
geth
:=
runGeth
(
t
,
geth
:=
runGeth
(
t
,
"--datadir"
,
datadir
,
"--nat"
,
"none"
,
"--nodiscover"
,
"--maxpeers"
,
"0"
,
"--port"
,
"0"
,
"--datadir"
,
datadir
,
"--nat"
,
"none"
,
"--nodiscover"
,
"--maxpeers"
,
"0"
,
"--port"
,
"0"
,
...
@@ -232,6 +242,7 @@ func TestUnlockFlagPasswordFile(t *testing.T) {
...
@@ -232,6 +242,7 @@ func TestUnlockFlagPasswordFile(t *testing.T) {
}
}
func
TestUnlockFlagPasswordFileWrongPassword
(
t
*
testing
.
T
)
{
func
TestUnlockFlagPasswordFileWrongPassword
(
t
*
testing
.
T
)
{
t
.
Skip
()
datadir
:=
tmpDatadirWithKeystore
(
t
)
datadir
:=
tmpDatadirWithKeystore
(
t
)
geth
:=
runGeth
(
t
,
geth
:=
runGeth
(
t
,
"--datadir"
,
datadir
,
"--nat"
,
"none"
,
"--nodiscover"
,
"--maxpeers"
,
"0"
,
"--port"
,
"0"
,
"--datadir"
,
datadir
,
"--nat"
,
"none"
,
"--nodiscover"
,
"--maxpeers"
,
"0"
,
"--port"
,
"0"
,
...
@@ -243,6 +254,7 @@ Fatal: Failed to unlock account 0 (could not decrypt key with given password)
...
@@ -243,6 +254,7 @@ Fatal: Failed to unlock account 0 (could not decrypt key with given password)
}
}
func
TestUnlockFlagAmbiguous
(
t
*
testing
.
T
)
{
func
TestUnlockFlagAmbiguous
(
t
*
testing
.
T
)
{
t
.
Skip
()
store
:=
filepath
.
Join
(
".."
,
".."
,
"accounts"
,
"keystore"
,
"testdata"
,
"dupes"
)
store
:=
filepath
.
Join
(
".."
,
".."
,
"accounts"
,
"keystore"
,
"testdata"
,
"dupes"
)
geth
:=
runGeth
(
t
,
geth
:=
runGeth
(
t
,
"--keystore"
,
store
,
"--nat"
,
"none"
,
"--nodiscover"
,
"--maxpeers"
,
"0"
,
"--port"
,
"0"
,
"--keystore"
,
store
,
"--nat"
,
"none"
,
"--nodiscover"
,
"--maxpeers"
,
"0"
,
"--port"
,
"0"
,
...
@@ -281,6 +293,7 @@ In order to avoid this warning, you need to remove the following duplicate key f
...
@@ -281,6 +293,7 @@ In order to avoid this warning, you need to remove the following duplicate key f
}
}
func
TestUnlockFlagAmbiguousWrongPassword
(
t
*
testing
.
T
)
{
func
TestUnlockFlagAmbiguousWrongPassword
(
t
*
testing
.
T
)
{
t
.
Skip
()
store
:=
filepath
.
Join
(
".."
,
".."
,
"accounts"
,
"keystore"
,
"testdata"
,
"dupes"
)
store
:=
filepath
.
Join
(
".."
,
".."
,
"accounts"
,
"keystore"
,
"testdata"
,
"dupes"
)
geth
:=
runGeth
(
t
,
geth
:=
runGeth
(
t
,
"--keystore"
,
store
,
"--nat"
,
"none"
,
"--nodiscover"
,
"--maxpeers"
,
"0"
,
"--port"
,
"0"
,
"--keystore"
,
store
,
"--nat"
,
"none"
,
"--nodiscover"
,
"--maxpeers"
,
"0"
,
"--port"
,
"0"
,
...
...
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