summaryrefslogtreecommitdiffstats
path: root/lib/puppet/interface/documentation.rb
diff options
context:
space:
mode:
authorDaniel Pittman <daniel@rimspace.net>2011-03-07 18:44:28 -0800
committerDaniel Pittman <daniel@rimspace.net>2011-03-07 18:44:28 -0800
commit9a1c3b5ad48a254ff2a6becc72f54feb37bb3de1 (patch)
tree7a175e70442c4ead4285ffc4538a7b06a48c53e2 /lib/puppet/interface/documentation.rb
parent28095d7435bcab15b76ddfa4435d61653f2f890d (diff)
downloadpuppet-9a1c3b5ad48a254ff2a6becc72f54feb37bb3de1.tar.gz
puppet-9a1c3b5ad48a254ff2a6becc72f54feb37bb3de1.tar.xz
puppet-9a1c3b5ad48a254ff2a6becc72f54feb37bb3de1.zip
maint: spec/integration/configurer has races in time checking.
This code depended on the time written by the configurer, and Time.now about half a dozen lines later, being the same integer value. This would work almost all the time, because our code is pretty fast, but can race. We now capture the time on both sides of the call, and verify that the emitted time was in that range; this actually tests the whole purpose much better, and more thoroughly. Reviewed-by: Paul Berry <paul@puppetlabs.com>
Diffstat (limited to 'lib/puppet/interface/documentation.rb')
0 files changed, 0 insertions, 0 deletions