aboutsummaryrefslogtreecommitdiffstats
path: root/console
diff options
context:
space:
mode:
authorWei-Ning Huang <w@dexon.org>2018-11-29 16:49:08 +0800
committerWei-Ning Huang <w@byzantine-lab.io>2019-06-12 17:27:19 +0800
commit23bdf9c7ef66f38dc5b50c849c83a3e8780b7b4f (patch)
tree98156b7bbd215da6632c3fb7e14062b7d694a1a0 /console
parent3fce54cf3115d44ba6397d1e780d2f1951c8a1d6 (diff)
downloadgo-tangerine-23bdf9c7ef66f38dc5b50c849c83a3e8780b7b4f.tar
go-tangerine-23bdf9c7ef66f38dc5b50c849c83a3e8780b7b4f.tar.gz
go-tangerine-23bdf9c7ef66f38dc5b50c849c83a3e8780b7b4f.tar.bz2
go-tangerine-23bdf9c7ef66f38dc5b50c849c83a3e8780b7b4f.tar.lz
go-tangerine-23bdf9c7ef66f38dc5b50c849c83a3e8780b7b4f.tar.xz
go-tangerine-23bdf9c7ef66f38dc5b50c849c83a3e8780b7b4f.tar.zst
go-tangerine-23bdf9c7ef66f38dc5b50c849c83a3e8780b7b4f.zip
core: fix tests (#65)
Diffstat (limited to 'console')
-rw-r--r--console/console_test.go7
1 files changed, 2 insertions, 5 deletions
diff --git a/console/console_test.go b/console/console_test.go
index ce650b161..0d751a484 100644
--- a/console/console_test.go
+++ b/console/console_test.go
@@ -156,7 +156,7 @@ func (env *tester) Close(t *testing.T) {
}
// Tests that the node lists the correct welcome message, notably that it contains
-// the instance name, coinbase account, block number, data directory and supported
+// the instance name, block number, data directory and supported
// console modules.
func TestWelcome(t *testing.T) {
tester := newTester(t, nil)
@@ -171,14 +171,11 @@ func TestWelcome(t *testing.T) {
if want := fmt.Sprintf("instance: %s", testInstance); !strings.Contains(output, want) {
t.Fatalf("console output missing instance: have\n%s\nwant also %s", output, want)
}
- if want := fmt.Sprintf("coinbase: %s", testAddress); !strings.Contains(output, want) {
- t.Fatalf("console output missing coinbase: have\n%s\nwant also %s", output, want)
- }
if want := "at block: 0"; !strings.Contains(output, want) {
t.Fatalf("console output missing sync status: have\n%s\nwant also %s", output, want)
}
if want := fmt.Sprintf("datadir: %s", tester.workspace); !strings.Contains(output, want) {
- t.Fatalf("console output missing coinbase: have\n%s\nwant also %s", output, want)
+ t.Fatalf("console output missing datadir: have\n%s\nwant also %s", output, want)
}
}