Skip to content

Commit cbbc9a3

Browse files
Skip checksum download tests in short mode
These tests download large archives from the internet. Gate them behind `testing.Short()` so they're skipped during normal CI (`make test`) and only run in nightly/long test sessions. Co-authored-by: Isaac
1 parent fc48e0d commit cbbc9a3

1 file changed

Lines changed: 8 additions & 0 deletions

File tree

bundle/deploy/terraform/pkg_test.go

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,10 @@ func downloadAndChecksum(t *testing.T, url, expectedChecksum string) {
4444
}
4545

4646
func TestTerraformArchiveChecksums(t *testing.T) {
47+
if testing.Short() {
48+
t.Skip("skipping slow test in short mode")
49+
}
50+
4751
tv, isDefault, err := GetTerraformVersion(t.Context())
4852
require.NoError(t, err)
4953
assert.True(t, isDefault)
@@ -55,6 +59,10 @@ func TestTerraformArchiveChecksums(t *testing.T) {
5559
}
5660

5761
func TestTerraformProviderArchiveChecksums(t *testing.T) {
62+
if testing.Short() {
63+
t.Skip("skipping slow test in short mode")
64+
}
65+
5866
metadata, err := NewTerraformMetadata(t.Context())
5967
require.NoError(t, err)
6068

0 commit comments

Comments
 (0)