Skip to content

Commit 2f7d118

Browse files
committed
fixed cli test based on the cli recent change
1 parent 9fb4951 commit 2f7d118

File tree

1 file changed

+1
-9
lines changed

1 file changed

+1
-9
lines changed

cli/cli_test.go

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -8,16 +8,8 @@ import (
88

99
var c *cli.Readline
1010

11-
func TestInitPrompt(t *testing.T) {
12-
c = cli.Init("local", "test")
13-
p := c.GetPrompt()
14-
if p != "local" {
15-
t.Error("Init cli prompt failed")
16-
}
17-
}
18-
1911
func TestSetPrompt(t *testing.T) {
20-
c = cli.Init("local", "test")
12+
c = cli.Init("test")
2113
c.SetPrompt("mylg")
2214
p := c.GetPrompt()
2315
if p != "mylg" {

0 commit comments

Comments
 (0)