mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-07-18 02:40:45 +00:00
update test C-[a-m] tests.
This commit is contained in:
parent
75b2f3ca9c
commit
c0677f03cb
3 changed files with 11 additions and 11 deletions
6
accounts/keystore/testdata/keystore/README
vendored
6
accounts/keystore/testdata/keystore/README
vendored
|
|
@ -4,11 +4,11 @@ The passphrase that unlocks them is "foobar".
|
||||||
The "good" key files which are supposed to be loadable are:
|
The "good" key files which are supposed to be loadable are:
|
||||||
|
|
||||||
- File: UTC--2016-03-22T12-57-55.920751759Z--7ef5a6135f1fd6a02593eedc869c6d41d934aef8
|
- File: UTC--2016-03-22T12-57-55.920751759Z--7ef5a6135f1fd6a02593eedc869c6d41d934aef8
|
||||||
Address: 0x7ef5a6135f1fd6a02593eedc869c6d41d934aef8
|
Address: xdc7ef5a6135f1fd6a02593eedc869c6d41d934aef8
|
||||||
- File: aaa
|
- File: aaa
|
||||||
Address: 0xf466859ead1932d743d622cb74fc058882e8648a
|
Address: xdcf466859ead1932d743d622cb74fc058882e8648a
|
||||||
- File: zzz
|
- File: zzz
|
||||||
Address: 0x289d485d9771714cce91d3393d764e1311907acc
|
Address: xdc289d485d9771714cce91d3393d764e1311907acc
|
||||||
|
|
||||||
The other files (including this README) are broken in various ways
|
The other files (including this README) are broken in various ways
|
||||||
and should not be picked up by package accounts:
|
and should not be picked up by package accounts:
|
||||||
|
|
|
||||||
|
|
@ -191,8 +191,8 @@ Passphrase: {{.InputLine "foobar"}}
|
||||||
|
|
||||||
wantMessages := []string{
|
wantMessages := []string{
|
||||||
"Unlocked account",
|
"Unlocked account",
|
||||||
"=0x7EF5A6135f1FD6a02593eEdC869c6D41D934aef8",
|
"=xdc7EF5A6135f1FD6a02593eEdC869c6D41D934aef8",
|
||||||
"=0x289d485D9771714CCe91D3393D764E1311907ACc",
|
"=xdc289d485D9771714CCe91D3393D764E1311907ACc",
|
||||||
}
|
}
|
||||||
for _, m := range wantMessages {
|
for _, m := range wantMessages {
|
||||||
if !strings.Contains(XDC.StderrText(), m) {
|
if !strings.Contains(XDC.StderrText(), m) {
|
||||||
|
|
@ -211,8 +211,8 @@ func TestUnlockFlagPasswordFile(t *testing.T) {
|
||||||
|
|
||||||
wantMessages := []string{
|
wantMessages := []string{
|
||||||
"Unlocked account",
|
"Unlocked account",
|
||||||
"=0x7EF5A6135f1FD6a02593eEdC869c6D41D934aef8",
|
"=xdc7EF5A6135f1FD6a02593eEdC869c6D41D934aef8",
|
||||||
"=0x289d485D9771714CCe91D3393D764E1311907ACc",
|
"=xdc289d485D9771714CCe91D3393D764E1311907ACc",
|
||||||
}
|
}
|
||||||
for _, m := range wantMessages {
|
for _, m := range wantMessages {
|
||||||
if !strings.Contains(XDC.StderrText(), m) {
|
if !strings.Contains(XDC.StderrText(), m) {
|
||||||
|
|
|
||||||
|
|
@ -38,7 +38,7 @@ const (
|
||||||
// Tests that a node embedded within a console can be started up properly and
|
// Tests that a node embedded within a console can be started up properly and
|
||||||
// then terminated by closing the input stream.
|
// then terminated by closing the input stream.
|
||||||
func TestConsoleWelcome(t *testing.T) {
|
func TestConsoleWelcome(t *testing.T) {
|
||||||
coinbase := "0x8605cdbbdb6d264aa742e77020dcbc58fcdce182"
|
coinbase := "xdc8605cdbbdb6d264aa742e77020dcbc58fcdce182"
|
||||||
|
|
||||||
// Start a XDC console, make sure it's cleaned up and terminate the console
|
// Start a XDC console, make sure it's cleaned up and terminate the console
|
||||||
XDC := runXDC(t,
|
XDC := runXDC(t,
|
||||||
|
|
@ -73,7 +73,7 @@ at block: 0 ({{niltime}})
|
||||||
// Tests that a console can be attached to a running node via various means.
|
// Tests that a console can be attached to a running node via various means.
|
||||||
func TestIPCAttachWelcome(t *testing.T) {
|
func TestIPCAttachWelcome(t *testing.T) {
|
||||||
// Configure the instance for IPC attachement
|
// Configure the instance for IPC attachement
|
||||||
coinbase := "0x8605cdbbdb6d264aa742e77020dcbc58fcdce182"
|
coinbase := "xdc8605cdbbdb6d264aa742e77020dcbc58fcdce182"
|
||||||
var ipc string
|
var ipc string
|
||||||
if runtime.GOOS == "windows" {
|
if runtime.GOOS == "windows" {
|
||||||
ipc = `\\.\pipe\XDC` + strconv.Itoa(trulyRandInt(100000, 999999))
|
ipc = `\\.\pipe\XDC` + strconv.Itoa(trulyRandInt(100000, 999999))
|
||||||
|
|
@ -95,7 +95,7 @@ func TestIPCAttachWelcome(t *testing.T) {
|
||||||
}
|
}
|
||||||
|
|
||||||
func TestHTTPAttachWelcome(t *testing.T) {
|
func TestHTTPAttachWelcome(t *testing.T) {
|
||||||
coinbase := "0x8605cdbbdb6d264aa742e77020dcbc58fcdce182"
|
coinbase := "xdc8605cdbbdb6d264aa742e77020dcbc58fcdce182"
|
||||||
port := strconv.Itoa(trulyRandInt(1024, 65536)) // Yeah, sometimes this will fail, sorry :P
|
port := strconv.Itoa(trulyRandInt(1024, 65536)) // Yeah, sometimes this will fail, sorry :P
|
||||||
XDC := runXDC(t,
|
XDC := runXDC(t,
|
||||||
"--XDCx.datadir", tmpdir(t)+"XDCx/"+time.Now().String(),
|
"--XDCx.datadir", tmpdir(t)+"XDCx/"+time.Now().String(),
|
||||||
|
|
@ -110,7 +110,7 @@ func TestHTTPAttachWelcome(t *testing.T) {
|
||||||
}
|
}
|
||||||
|
|
||||||
func TestWSAttachWelcome(t *testing.T) {
|
func TestWSAttachWelcome(t *testing.T) {
|
||||||
coinbase := "0x8605cdbbdb6d264aa742e77020dcbc58fcdce182"
|
coinbase := "xdc8605cdbbdb6d264aa742e77020dcbc58fcdce182"
|
||||||
port := strconv.Itoa(trulyRandInt(1024, 65536)) // Yeah, sometimes this will fail, sorry :P
|
port := strconv.Itoa(trulyRandInt(1024, 65536)) // Yeah, sometimes this will fail, sorry :P
|
||||||
|
|
||||||
XDC := runXDC(t,
|
XDC := runXDC(t,
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue