From 53cdf894c384a94c9c44f4a5e4c1dbb8b512acdc Mon Sep 17 00:00:00 2001 From: luopengift <870148195@qq.com> Date: Sun, 14 Oct 2018 01:32:46 +0800 Subject: [PATCH] Fix readline_test.go file On branch master Your branch is up to date with 'origin/master'. Changes to be committed: modified: readline_test.go --- readline_test.go | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/readline_test.go b/readline_test.go index 34a5a3b..e76d010 100644 --- a/readline_test.go +++ b/readline_test.go @@ -6,7 +6,9 @@ import ( ) func TestRace(t *testing.T) { - rl, err := NewEx(&Config{}) + rl, err := NewEx(&Config{ + Prompt: StaticPrompt(""), + }) if err != nil { t.Fatal(err) return @@ -14,7 +16,7 @@ func TestRace(t *testing.T) { go func() { for range time.Tick(time.Millisecond) { - rl.SetPrompt("hello") + rl.SetPrompt(StaticPrompt("hello")) } }()