fixing test in process package + tests for app package

This commit is contained in:
Julien Neuhart
2018-04-05 17:57:15 +02:00
parent acea482456
commit bf28499e18
3 changed files with 109 additions and 23 deletions

View File

@@ -105,7 +105,7 @@ func TestRun(t *testing.T) {
}
// case 2: uses a simple command but with an unsuitable timeout.
if err := run("echo Hello world", 0); err == nil {
if err := run("sleep 5", 0); err == nil {
t.Error("Command should not have worked!")
}