HomePhorge

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

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
rPU13972f7b2ca3: Merge branch 'maint/2.6.next/5408' into 2.6.next
Branches
Unknown
Tags
Unknown

Event Timeline

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