Merge pull request #12246 from hashicorp/jbardin/local-exec-test

remove log.Fatal from test
This commit is contained in:
James Bardin 2017-02-24 19:06:49 -05:00 committed by GitHub
commit f1be6cbf6e
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")
}
}