HomePhorge

[3782] Test isolation problem in test/ral/providers/cron/crontab.rb
1ba536eb533eUnpublished

Unpublished Commit ยท Learn More

Repository Importing: This repository is still importing.

Description

[3782] Test isolation problem in test/ral/providers/cron/crontab.rb

The test in question (test_parse_line) was nondeterministic because it
was relying on the sort order of a Hash whose keys were symbols. When
the sort order caused a blank line to appear at the end of the file
under test, the blank line was elided by the crontab parser, causing a
failure.

Modified the test to execute in a deterministic order that doesn't
place the blank line at the end.

Details

Provenance
Paul Berry <paul@puppetlabs.com>Authored on
vanmeeuwenPushed on Jun 2 2015, 2:22 PM
Parents
rPUfb9034731dda: Merge commit '2.6.1rc3' into next
Branches
Unknown
Tags
Unknown

Event Timeline

Paul Berry <paul@puppetlabs.com> committed rPU1ba536eb533e: [3782] Test isolation problem in test/ral/providers/cron/crontab.rb (authored by Paul Berry <paul@puppetlabs.com>).Aug 31 2010, 8:46 PM