mirror of https://github.com/chzyer/readline.git
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:
parent
ee7dbdffca
commit
53cdf894c3
|
@ -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"))
|
||||||
}
|
}
|
||||||
}()
|
}()
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue