@@ -18,7 +18,7 @@ func TestAccComputeInstanceMigrateState(t *testing.T) {
18
18
t .Parallel ()
19
19
20
20
if os .Getenv (TestEnvVar ) == "" {
21
- t .Skip ( fmt . Sprintf ( "Network access not allowed; use %s=1 to enable" , TestEnvVar ) )
21
+ t .Skipf ( "Network access not allowed; use %s=1 to enable" , TestEnvVar )
22
22
}
23
23
cases := map [string ]struct {
24
24
StateVersion int
@@ -122,7 +122,7 @@ func TestAccComputeInstanceMigrateState_empty(t *testing.T) {
122
122
t .Parallel ()
123
123
124
124
if os .Getenv (TestEnvVar ) == "" {
125
- t .Skip ( fmt . Sprintf ( "Network access not allowed; use %s=1 to enable" , TestEnvVar ) )
125
+ t .Skipf ( "Network access not allowed; use %s=1 to enable" , TestEnvVar )
126
126
}
127
127
var is * terraform.InstanceState
128
128
var meta interface {}
@@ -150,7 +150,7 @@ func TestAccComputeInstanceMigrateState_bootDisk(t *testing.T) {
150
150
t .Parallel ()
151
151
152
152
if os .Getenv (TestEnvVar ) == "" {
153
- t .Skip ( fmt . Sprintf ( "Network access not allowed; use %s=1 to enable" , TestEnvVar ) )
153
+ t .Skipf ( "Network access not allowed; use %s=1 to enable" , TestEnvVar )
154
154
}
155
155
config := getInitializedConfig (t )
156
156
zone := "us-central1-f"
@@ -218,7 +218,7 @@ func TestAccComputeInstanceMigrateState_v4FixBootDisk(t *testing.T) {
218
218
t .Parallel ()
219
219
220
220
if os .Getenv (TestEnvVar ) == "" {
221
- t .Skip ( fmt . Sprintf ( "Network access not allowed; use %s=1 to enable" , TestEnvVar ) )
221
+ t .Skipf ( "Network access not allowed; use %s=1 to enable" , TestEnvVar )
222
222
}
223
223
config := getInitializedConfig (t )
224
224
zone := "us-central1-f"
@@ -285,7 +285,7 @@ func TestAccComputeInstanceMigrateState_attachedDiskFromSource(t *testing.T) {
285
285
t .Parallel ()
286
286
287
287
if os .Getenv (TestEnvVar ) == "" {
288
- t .Skip ( fmt . Sprintf ( "Network access not allowed; use %s=1 to enable" , TestEnvVar ) )
288
+ t .Skipf ( "Network access not allowed; use %s=1 to enable" , TestEnvVar )
289
289
}
290
290
config := getInitializedConfig (t )
291
291
zone := "us-central1-f"
@@ -366,7 +366,7 @@ func TestAccComputeInstanceMigrateState_v4FixAttachedDiskFromSource(t *testing.T
366
366
t .Parallel ()
367
367
368
368
if os .Getenv (TestEnvVar ) == "" {
369
- t .Skip ( fmt . Sprintf ( "Network access not allowed; use %s=1 to enable" , TestEnvVar ) )
369
+ t .Skipf ( "Network access not allowed; use %s=1 to enable" , TestEnvVar )
370
370
}
371
371
config := getInitializedConfig (t )
372
372
zone := "us-central1-f"
@@ -446,7 +446,7 @@ func TestAccComputeInstanceMigrateState_attachedDiskFromEncryptionKey(t *testing
446
446
t .Parallel ()
447
447
448
448
if os .Getenv (TestEnvVar ) == "" {
449
- t .Skip ( fmt . Sprintf ( "Network access not allowed; use %s=1 to enable" , TestEnvVar ) )
449
+ t .Skipf ( "Network access not allowed; use %s=1 to enable" , TestEnvVar )
450
450
}
451
451
config := getInitializedConfig (t )
452
452
zone := "us-central1-f"
@@ -515,7 +515,7 @@ func TestAccComputeInstanceMigrateState_v4FixAttachedDiskFromEncryptionKey(t *te
515
515
t .Parallel ()
516
516
517
517
if os .Getenv (TestEnvVar ) == "" {
518
- t .Skip ( fmt . Sprintf ( "Network access not allowed; use %s=1 to enable" , TestEnvVar ) )
518
+ t .Skipf ( "Network access not allowed; use %s=1 to enable" , TestEnvVar )
519
519
}
520
520
config := getInitializedConfig (t )
521
521
zone := "us-central1-f"
@@ -583,7 +583,7 @@ func TestAccComputeInstanceMigrateState_attachedDiskFromAutoDeleteAndImage(t *te
583
583
t .Parallel ()
584
584
585
585
if os .Getenv (TestEnvVar ) == "" {
586
- t .Skip ( fmt . Sprintf ( "Network access not allowed; use %s=1 to enable" , TestEnvVar ) )
586
+ t .Skipf ( "Network access not allowed; use %s=1 to enable" , TestEnvVar )
587
587
}
588
588
config := getInitializedConfig (t )
589
589
zone := "us-central1-f"
@@ -656,7 +656,7 @@ func TestAccComputeInstanceMigrateState_v4FixAttachedDiskFromAutoDeleteAndImage(
656
656
t .Parallel ()
657
657
658
658
if os .Getenv (TestEnvVar ) == "" {
659
- t .Skip ( fmt . Sprintf ( "Network access not allowed; use %s=1 to enable" , TestEnvVar ) )
659
+ t .Skipf ( "Network access not allowed; use %s=1 to enable" , TestEnvVar )
660
660
}
661
661
config := getInitializedConfig (t )
662
662
zone := "us-central1-f"
@@ -728,7 +728,7 @@ func TestAccComputeInstanceMigrateState_scratchDisk(t *testing.T) {
728
728
t .Parallel ()
729
729
730
730
if os .Getenv (TestEnvVar ) == "" {
731
- t .Skip ( fmt . Sprintf ( "Network access not allowed; use %s=1 to enable" , TestEnvVar ) )
731
+ t .Skipf ( "Network access not allowed; use %s=1 to enable" , TestEnvVar )
732
732
}
733
733
config := getInitializedConfig (t )
734
734
zone := "us-central1-f"
@@ -794,7 +794,7 @@ func TestAccComputeInstanceMigrateState_v4FixScratchDisk(t *testing.T) {
794
794
t .Parallel ()
795
795
796
796
if os .Getenv (TestEnvVar ) == "" {
797
- t .Skip ( fmt . Sprintf ( "Network access not allowed; use %s=1 to enable" , TestEnvVar ) )
797
+ t .Skipf ( "Network access not allowed; use %s=1 to enable" , TestEnvVar )
798
798
}
799
799
config := getInitializedConfig (t )
800
800
zone := "us-central1-f"
0 commit comments