Skip to content

Commit 7f97beb

Browse files
skip tests that use time.Now in VCR (#13555) (#9731)
[upstream:3c558b65bddae36c0cf730f850b0fa4dbf6b8750] Signed-off-by: Modular Magician <[email protected]>
1 parent ec2eda3 commit 7f97beb

5 files changed

+10
-0
lines changed

google-beta/services/compute/resource_compute_instance_from_machine_image_test.go

+2
Original file line numberDiff line numberDiff line change
@@ -78,6 +78,8 @@ func TestAccComputeInstanceFromMachineImage_maxRunDuration(t *testing.T) {
7878
}
7979

8080
func TestAccComputeInstanceFromMachineImage_terminationTime(t *testing.T) {
81+
// Uses time.Now
82+
acctest.SkipIfVcr(t)
8183
t.Parallel()
8284

8385
var instance compute.Instance

google-beta/services/compute/resource_compute_instance_from_template_test.go

+2
Original file line numberDiff line numberDiff line change
@@ -399,6 +399,8 @@ func TestAccComputeInstanceFromTemplate_overrideScheduling(t *testing.T) {
399399
}
400400

401401
func TestAccComputeInstanceFromTemplate_TerminationTime(t *testing.T) {
402+
// Uses time.Now
403+
acctest.SkipIfVcr(t)
402404
t.Parallel()
403405

404406
var instance compute.Instance

google-beta/services/compute/resource_compute_instance_template_test.go

+2
Original file line numberDiff line numberDiff line change
@@ -1415,6 +1415,8 @@ func TestAccComputeInstanceTemplate_maxRunDuration_onInstanceStopAction(t *testi
14151415
}
14161416

14171417
func TestAccComputeInstanceTemplate_instanceTerminationAction_terminationTime(t *testing.T) {
1418+
// Uses time.Now
1419+
acctest.SkipIfVcr(t)
14181420
t.Parallel()
14191421

14201422
var instanceTemplate compute.InstanceTemplate

google-beta/services/compute/resource_compute_instance_test.go

+2
Original file line numberDiff line numberDiff line change
@@ -1681,6 +1681,8 @@ func TestAccComputeInstance_scheduling(t *testing.T) {
16811681
}
16821682

16831683
func TestAccComputeInstance_schedulingTerminationTime(t *testing.T) {
1684+
// Uses time.Now
1685+
acctest.SkipIfVcr(t)
16841686
t.Parallel()
16851687

16861688
var instance compute.Instance

google-beta/services/compute/resource_compute_region_instance_template_test.go

+2
Original file line numberDiff line numberDiff line change
@@ -1249,6 +1249,8 @@ func TestAccComputeRegionInstanceTemplate_maxRunDuration_onInstanceStopAction(t
12491249
}
12501250

12511251
func TestAccComputeRegionInstanceTemplate_instanceTerminationAction_terminationTime(t *testing.T) {
1252+
// Uses time.Now
1253+
acctest.SkipIfVcr(t)
12521254
t.Parallel()
12531255

12541256
var instanceTemplate compute.InstanceTemplate

0 commit comments

Comments
 (0)