File tree Expand file tree Collapse file tree 2 files changed +10
-2
lines changed Expand file tree Collapse file tree 2 files changed +10
-2
lines changed Original file line number Diff line number Diff line change @@ -12,7 +12,6 @@ import (
12
12
"regexp"
13
13
"strings"
14
14
"syscall"
15
- gotesting "testing"
16
15
17
16
"github.com/hashicorp/go-multierror"
18
17
"github.com/hashicorp/logutils"
@@ -540,7 +539,7 @@ func Test(t testing.T, c TestCase) {
540
539
log .SetOutput (logWriter )
541
540
542
541
// We require verbose mode so that the user knows what is going on.
543
- if ! gotesting .Verbose () && ! c .IsUnitTest {
542
+ if ! testing .Verbose () && ! c .IsUnitTest {
544
543
t .Fatal ("Acceptance tests must be run with the -v flag on tests" )
545
544
}
546
545
Original file line number Diff line number Diff line change 3
3
// importers of the SDK
4
4
package testing
5
5
6
+ import "testing"
7
+
6
8
// T is the interface used to handle the test lifecycle of a test.
7
9
//
8
10
// Users should just use a *testing.T object, which implements this.
@@ -22,3 +24,10 @@ type T interface {
22
24
type M interface {
23
25
Run () int
24
26
}
27
+
28
+ // Verbose just wraps the official testing package's helper of the same name.
29
+ // This is the final reference to the testing package in non *_test.go files
30
+ // in the SDK.
31
+ func Verbose () bool {
32
+ return testing .Verbose ()
33
+ }
You can’t perform that action at this time.
0 commit comments