remove log.Fatal from test

also increase the timeout for slow test hosts.
This commit is contained in:
James Bardin 2017-02-24 18:48:48 -05:00
parent d596d6e761
commit fd2ea3cd82
1 changed files with 2 additions and 3 deletions

View File

@ -2,7 +2,6 @@ package localexec
import (
"io/ioutil"
"log"
"os"
"strings"
"testing"
@ -65,8 +64,8 @@ func TestResourceProvider_stop(t *testing.T) {
select {
case <-doneCh:
case <-time.After(500 * time.Millisecond):
log.Fatal("should finish")
case <-time.After(2 * time.Second):
t.Fatal("should finish")
}
}