From c0677f03cb4f11d10a495f123721e557a70f5ad7 Mon Sep 17 00:00:00 2001 From: olumuyiwadad Date: Mon, 27 Sep 2021 12:47:59 +0530 Subject: [PATCH] update test C-[a-m] tests. --- accounts/keystore/testdata/keystore/README | 6 +++--- cmd/XDC/accountcmd_test.go | 8 ++++---- cmd/XDC/consolecmd_test.go | 8 ++++---- 3 files changed, 11 insertions(+), 11 deletions(-) diff --git a/accounts/keystore/testdata/keystore/README b/accounts/keystore/testdata/keystore/README index a5a86f964d..c489123c26 100644 --- a/accounts/keystore/testdata/keystore/README +++ b/accounts/keystore/testdata/keystore/README @@ -4,11 +4,11 @@ The passphrase that unlocks them is "foobar". The "good" key files which are supposed to be loadable are: - File: UTC--2016-03-22T12-57-55.920751759Z--7ef5a6135f1fd6a02593eedc869c6d41d934aef8 - Address: 0x7ef5a6135f1fd6a02593eedc869c6d41d934aef8 + Address: xdc7ef5a6135f1fd6a02593eedc869c6d41d934aef8 - File: aaa - Address: 0xf466859ead1932d743d622cb74fc058882e8648a + Address: xdcf466859ead1932d743d622cb74fc058882e8648a - File: zzz - Address: 0x289d485d9771714cce91d3393d764e1311907acc + Address: xdc289d485d9771714cce91d3393d764e1311907acc The other files (including this README) are broken in various ways and should not be picked up by package accounts: diff --git a/cmd/XDC/accountcmd_test.go b/cmd/XDC/accountcmd_test.go index fe7e5af2b9..76d5e47837 100644 --- a/cmd/XDC/accountcmd_test.go +++ b/cmd/XDC/accountcmd_test.go @@ -191,8 +191,8 @@ Passphrase: {{.InputLine "foobar"}} wantMessages := []string{ "Unlocked account", - "=0x7EF5A6135f1FD6a02593eEdC869c6D41D934aef8", - "=0x289d485D9771714CCe91D3393D764E1311907ACc", + "=xdc7EF5A6135f1FD6a02593eEdC869c6D41D934aef8", + "=xdc289d485D9771714CCe91D3393D764E1311907ACc", } for _, m := range wantMessages { if !strings.Contains(XDC.StderrText(), m) { @@ -211,8 +211,8 @@ func TestUnlockFlagPasswordFile(t *testing.T) { wantMessages := []string{ "Unlocked account", - "=0x7EF5A6135f1FD6a02593eEdC869c6D41D934aef8", - "=0x289d485D9771714CCe91D3393D764E1311907ACc", + "=xdc7EF5A6135f1FD6a02593eEdC869c6D41D934aef8", + "=xdc289d485D9771714CCe91D3393D764E1311907ACc", } for _, m := range wantMessages { if !strings.Contains(XDC.StderrText(), m) { diff --git a/cmd/XDC/consolecmd_test.go b/cmd/XDC/consolecmd_test.go index bb8296a49c..2801583ce2 100644 --- a/cmd/XDC/consolecmd_test.go +++ b/cmd/XDC/consolecmd_test.go @@ -38,7 +38,7 @@ const ( // Tests that a node embedded within a console can be started up properly and // then terminated by closing the input stream. func TestConsoleWelcome(t *testing.T) { - coinbase := "0x8605cdbbdb6d264aa742e77020dcbc58fcdce182" + coinbase := "xdc8605cdbbdb6d264aa742e77020dcbc58fcdce182" // Start a XDC console, make sure it's cleaned up and terminate the console 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. func TestIPCAttachWelcome(t *testing.T) { // Configure the instance for IPC attachement - coinbase := "0x8605cdbbdb6d264aa742e77020dcbc58fcdce182" + coinbase := "xdc8605cdbbdb6d264aa742e77020dcbc58fcdce182" var ipc string if runtime.GOOS == "windows" { ipc = `\\.\pipe\XDC` + strconv.Itoa(trulyRandInt(100000, 999999)) @@ -95,7 +95,7 @@ func TestIPCAttachWelcome(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 XDC := runXDC(t, "--XDCx.datadir", tmpdir(t)+"XDCx/"+time.Now().String(), @@ -110,7 +110,7 @@ func TestHTTPAttachWelcome(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 XDC := runXDC(t,