Skip to content

Commit

Permalink
fixed cli test based on the cli recent change
Browse files Browse the repository at this point in the history
  • Loading branch information
mehrdadrad committed Sep 23, 2016
1 parent 9fb4951 commit 2f7d118
Showing 1 changed file with 1 addition and 9 deletions.
10 changes: 1 addition & 9 deletions cli/cli_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,16 +8,8 @@ import (

var c *cli.Readline

func TestInitPrompt(t *testing.T) {
c = cli.Init("local", "test")
p := c.GetPrompt()
if p != "local" {
t.Error("Init cli prompt failed")
}
}

func TestSetPrompt(t *testing.T) {
c = cli.Init("local", "test")
c = cli.Init("test")
c.SetPrompt("mylg")
p := c.GetPrompt()
if p != "mylg" {
Expand Down

0 comments on commit 2f7d118

Please sign in to comment.