aboutsummaryrefslogtreecommitdiffstats
path: root/cmd/geth
diff options
context:
space:
mode:
authorzelig <viktor.tron@gmail.com>2015-06-22 05:17:17 +0800
committerzelig <viktor.tron@gmail.com>2015-07-03 06:29:07 +0800
commita4df9d74eabb3bef8449744c4fe966572586dc39 (patch)
treea04c7871818a855995681b311f918ec522c6ca41 /cmd/geth
parenteb82ca4563cf80bef9b520673d3bd18283da3a1f (diff)
downloaddexon-a4df9d74eabb3bef8449744c4fe966572586dc39.tar
dexon-a4df9d74eabb3bef8449744c4fe966572586dc39.tar.gz
dexon-a4df9d74eabb3bef8449744c4fe966572586dc39.tar.bz2
dexon-a4df9d74eabb3bef8449744c4fe966572586dc39.tar.lz
dexon-a4df9d74eabb3bef8449744c4fe966572586dc39.tar.xz
dexon-a4df9d74eabb3bef8449744c4fe966572586dc39.tar.zst
dexon-a4df9d74eabb3bef8449744c4fe966572586dc39.zip
accounts order by keyfile ctime
Diffstat (limited to 'cmd/geth')
-rw-r--r--cmd/geth/js_test.go6
1 files changed, 3 insertions, 3 deletions
diff --git a/cmd/geth/js_test.go b/cmd/geth/js_test.go
index 5bdfb7048..61e85d399 100644
--- a/cmd/geth/js_test.go
+++ b/cmd/geth/js_test.go
@@ -9,6 +9,7 @@ import (
"runtime"
"strconv"
"testing"
+ "time"
"github.com/ethereum/go-ethereum/accounts"
"github.com/ethereum/go-ethereum/common"
@@ -20,8 +21,8 @@ import (
"github.com/ethereum/go-ethereum/core/state"
"github.com/ethereum/go-ethereum/crypto"
"github.com/ethereum/go-ethereum/eth"
- "github.com/ethereum/go-ethereum/rpc/comms"
"github.com/ethereum/go-ethereum/rpc/codec"
+ "github.com/ethereum/go-ethereum/rpc/comms"
)
const (
@@ -141,7 +142,6 @@ func TestAccounts(t *testing.T) {
checkEvalJSON(t, repl, `eth.accounts`, `["`+testAddress+`"]`)
checkEvalJSON(t, repl, `eth.coinbase`, `null`)
-
val, err := repl.re.Run(`personal.newAccount("password")`)
if err != nil {
t.Errorf("expected no error, got %v", err)
@@ -151,7 +151,7 @@ func TestAccounts(t *testing.T) {
t.Errorf("address not hex: %q", addr)
}
- // checkEvalJSON(t, repl, `eth.accounts`, `["`+testAddress+`", "`+addr+`"]`)
+ checkEvalJSON(t, repl, `eth.accounts`, `["`+testAddress+`","`+addr+`"]`)
}
func TestBlockChain(t *testing.T) {