mirror of
https://github.com/opentofu/opentofu.git
synced 2024-12-26 00:41:27 -06:00
cb2e9119aa
Signed-off-by: namgyalangmo <75657887+namgyalangmo@users.noreply.github.com>
31 lines
595 B
Go
31 lines
595 B
Go
// Copyright (c) The OpenTofu Authors
|
|
// SPDX-License-Identifier: MPL-2.0
|
|
// Copyright (c) 2023 HashiCorp, Inc.
|
|
// SPDX-License-Identifier: MPL-2.0
|
|
|
|
package remote
|
|
|
|
import (
|
|
"flag"
|
|
"os"
|
|
"testing"
|
|
"time"
|
|
|
|
_ "github.com/opentofu/opentofu/internal/logging"
|
|
)
|
|
|
|
func TestMain(m *testing.M) {
|
|
flag.Parse()
|
|
|
|
// Make sure TF_FORCE_LOCAL_BACKEND is unset
|
|
os.Unsetenv("TF_FORCE_LOCAL_BACKEND")
|
|
|
|
// Reduce delays to make tests run faster
|
|
backoffMin = 1.0
|
|
backoffMax = 1.0
|
|
planConfigurationVersionsPollInterval = 1 * time.Millisecond
|
|
runPollInterval = 1 * time.Millisecond
|
|
|
|
os.Exit(m.Run())
|
|
}
|