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
This commit is contained in:
luopengift 2018-10-14 01:32:46 +08:00
parent ee7dbdffca
commit 53cdf894c3
1 changed files with 4 additions and 2 deletions

View File

@ -6,7 +6,9 @@ import (
) )
func TestRace(t *testing.T) { func TestRace(t *testing.T) {
rl, err := NewEx(&Config{}) rl, err := NewEx(&Config{
Prompt: StaticPrompt(""),
})
if err != nil { if err != nil {
t.Fatal(err) t.Fatal(err)
return return
@ -14,7 +16,7 @@ func TestRace(t *testing.T) {
go func() { go func() {
for range time.Tick(time.Millisecond) { for range time.Tick(time.Millisecond) {
rl.SetPrompt("hello") rl.SetPrompt(StaticPrompt("hello"))
} }
}() }()