github.com/kanishk98/terraform@v1.3.0-dev.0.20220917174235-661ca8088a6a/internal/cloud/remote_test.go (about)

     1  package cloud
     2  
     3  import (
     4  	"flag"
     5  	"os"
     6  	"testing"
     7  	"time"
     8  
     9  	_ "github.com/hashicorp/terraform/internal/logging"
    10  )
    11  
    12  func TestMain(m *testing.M) {
    13  	flag.Parse()
    14  
    15  	// Make sure TF_FORCE_LOCAL_BACKEND is unset
    16  	os.Unsetenv("TF_FORCE_LOCAL_BACKEND")
    17  
    18  	// Reduce delays to make tests run faster
    19  	backoffMin = 1.0
    20  	backoffMax = 1.0
    21  	planConfigurationVersionsPollInterval = 1 * time.Millisecond
    22  	runPollInterval = 1 * time.Millisecond
    23  
    24  	os.Exit(m.Run())
    25  }