mirror of
https://github.com/opentffoundation/opentf.git
synced 2026-04-24 00:02:06 -04:00
remove log.Fatal from test
also increase the timeout for slow test hosts.
This commit is contained in:
@@ -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")
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user