HomePhorge

[#5225] Fix spec failure that depended on time change
aad700802b9aUnpublished

Unpublished Commit ยท Learn More

Repository Importing: This repository is still importing.

Description

[#5225] Fix spec failure that depended on time change

Turns out that:

zero = Time.now # Reset the current time to X:00:00
current = zero - (zero.hour * 3600) - (zero.min * 60) - zero.sec

current is actually 1am on a day where the time falls back (Nov 7th),
not midnight as the test expected.

Reviewed-by: Paul Berry <paul@puppetlabs.com>

Details

Provenance
Matt Robinson <matt@puppetlabs.com>Authored on
Markus Roberts <Markus@reality.com>Committed on Nov 9 2010, 4:52 AM
vanmeeuwenPushed on Jun 2 2015, 2:22 PM
Parents
rPU21db472640c8: (#5233) Randomize tmp dir paths
Branches
Unknown
Tags
Unknown

Event Timeline

Markus Roberts <Markus@reality.com> committed rPUaad700802b9a: [#5225] Fix spec failure that depended on time change (authored by Matt Robinson <matt@puppetlabs.com>).Nov 9 2010, 4:52 AM