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 (
1212 "regexp"
1313 "strings"
1414 "syscall"
15- gotesting "testing"
1615
1716 "github.com/hashicorp/go-multierror"
1817 "github.com/hashicorp/logutils"
@@ -540,7 +539,7 @@ func Test(t testing.T, c TestCase) {
540539 log .SetOutput (logWriter )
541540
542541 // 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 {
544543 t .Fatal ("Acceptance tests must be run with the -v flag on tests" )
545544 }
546545
Original file line number Diff line number Diff line change 33// importers of the SDK
44package testing
55
6+ import "testing"
7+
68// T is the interface used to handle the test lifecycle of a test.
79//
810// Users should just use a *testing.T object, which implements this.
@@ -22,3 +24,10 @@ type T interface {
2224type M interface {
2325 Run () int
2426}
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