Skip to content
Myr

Fix unit tests

Before adoption: this commit came in with the history the project adopted, so no landing records it.

authored by Junegunn Choi · committed by Junegunn Choi · parent 17da165 · Browse files · 1 file+2 added−2 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

1 file+2 added−2 removed

  • other:+2 added−2 removed

1 file+2 added−2 removed

modified:src/reader_test.go+2 added-2 removed
20 unmodified lines
21 t.Error("EvtReadNew should not be set yet")22 }2324 // Normal command25 reader.fin(reader.readFromCommand(`echo abc&&echo def`))25 reader.fin(reader.readFromCommand(`echo abc&&echo def`, nil))26 if len(strs) != 2 || strs[0] != "abc" || strs[1] != "def" {27 t.Errorf("%s", strs)28 }29
16 unmodified lines
46 // Restart event poller47 reader.startEventPoller()4849 // Failing command50 reader.fin(reader.readFromCommand(`no-such-command`))50 reader.fin(reader.readFromCommand(`no-such-command`, nil))51 strs = []string{}52 if len(strs) > 0 {53 t.Errorf("%s", strs)54 }
9 unmodified lines