Skip to content

Commit e31709d

Browse files
authored
console: fix the wrong error msg of datadir testcase (ethereum#29183)
1 parent d35c8f0 commit e31709d

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

console/console_test.go

+5-3
Original file line numberDiff line numberDiff line change
@@ -152,8 +152,7 @@ func (env *tester) Close(t *testing.T) {
152152
}
153153

154154
// Tests that the node lists the correct welcome message, notably that it contains
155-
// the instance name, coinbase account, block number, data directory and supported
156-
// console modules.
155+
// the instance name, block number, data directory and supported console modules.
157156
func TestWelcome(t *testing.T) {
158157
tester := newTester(t, nil)
159158
defer tester.Close(t)
@@ -171,7 +170,10 @@ func TestWelcome(t *testing.T) {
171170
t.Fatalf("console output missing sync status: have\n%s\nwant also %s", output, want)
172171
}
173172
if want := fmt.Sprintf("datadir: %s", tester.workspace); !strings.Contains(output, want) {
174-
t.Fatalf("console output missing coinbase: have\n%s\nwant also %s", output, want)
173+
t.Fatalf("console output missing datadir: have\n%s\nwant also %s", output, want)
174+
}
175+
if want := "modules: "; !strings.Contains(output, want) {
176+
t.Fatalf("console output missing modules: have\n%s\nwant also %s", output, want)
175177
}
176178
}
177179

0 commit comments

Comments
 (0)