Skip to content

Commit

Permalink
Replace *testing.T with testing.TestingT
Browse files Browse the repository at this point in the history
The WithDefaultRetryableErrors function now takes a testing.TestingT
argument instead of *testing.T to allow for anything that implements the
testing.TestingT interface to be used. This allows for GinkgoT() to be
used in tests utilizing the ginkgo testing framework.
  • Loading branch information
Calvin Bascom committed May 22, 2021
1 parent d1ce8be commit 1f2b645
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions modules/terraform/options.go
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
package terraform

import (
"testing"
"time"

"github.com/gruntwork-io/terratest/modules/logger"
"github.com/gruntwork-io/terratest/modules/ssh"
"github.com/gruntwork-io/terratest/modules/testing"
"github.com/jinzhu/copier"
"github.com/stretchr/testify/require"
)
Expand Down Expand Up @@ -86,7 +86,7 @@ func (options *Options) Clone() (*Options, error) {
// for retryable errors. The included retryable errors are typical errors that most terraform modules encounter during
// testing, and are known to self resolve upon retrying.
// This will fail the test if there are any errors in the cloning process.
func WithDefaultRetryableErrors(t *testing.T, originalOptions *Options) *Options {
func WithDefaultRetryableErrors(t testing.TestingT, originalOptions *Options) *Options {
newOptions, err := originalOptions.Clone()
require.NoError(t, err)

Expand Down

0 comments on commit 1f2b645

Please sign in to comment.