Skip to content

Commit 03a8e56

Browse files
skip tests that use time.Now in VCR (#13555) (#22248)
[upstream:3c558b65bddae36c0cf730f850b0fa4dbf6b8750] Signed-off-by: Modular Magician <[email protected]>
1 parent 41c2620 commit 03a8e56

4 files changed

+8
-0
lines changed

google/services/compute/resource_compute_instance_from_template_test.go

+2
Original file line numberDiff line numberDiff line change
@@ -277,6 +277,8 @@ func TestAccComputeInstanceFromTemplate_overrideScheduling(t *testing.T) {
277277
}
278278

279279
func TestAccComputeInstanceFromTemplate_TerminationTime(t *testing.T) {
280+
// Uses time.Now
281+
acctest.SkipIfVcr(t)
280282
t.Parallel()
281283

282284
var instance compute.Instance

google/services/compute/resource_compute_instance_template_test.go

+2
Original file line numberDiff line numberDiff line change
@@ -1320,6 +1320,8 @@ func TestAccComputeInstanceTemplate_maxRunDuration_onInstanceStopAction(t *testi
13201320
}
13211321

13221322
func TestAccComputeInstanceTemplate_instanceTerminationAction_terminationTime(t *testing.T) {
1323+
// Uses time.Now
1324+
acctest.SkipIfVcr(t)
13231325
t.Parallel()
13241326

13251327
var instanceTemplate compute.InstanceTemplate

google/services/compute/resource_compute_instance_test.go

+2
Original file line numberDiff line numberDiff line change
@@ -1679,6 +1679,8 @@ func TestAccComputeInstance_scheduling(t *testing.T) {
16791679
}
16801680

16811681
func TestAccComputeInstance_schedulingTerminationTime(t *testing.T) {
1682+
// Uses time.Now
1683+
acctest.SkipIfVcr(t)
16821684
t.Parallel()
16831685

16841686
var instance compute.Instance

google/services/compute/resource_compute_region_instance_template_test.go

+2
Original file line numberDiff line numberDiff line change
@@ -1192,6 +1192,8 @@ func TestAccComputeRegionInstanceTemplate_maxRunDuration_onInstanceStopAction(t
11921192
}
11931193

11941194
func TestAccComputeRegionInstanceTemplate_instanceTerminationAction_terminationTime(t *testing.T) {
1195+
// Uses time.Now
1196+
acctest.SkipIfVcr(t)
11951197
t.Parallel()
11961198

11971199
var instanceTemplate compute.InstanceTemplate

0 commit comments

Comments
 (0)