Created
November 16, 2009 15:33
-
-
Save enricob/236063 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
From 4002d14f96e9659c2909408b7f4c2ab4936ab2ef Mon Sep 17 00:00:00 2001 | |
From: Enrico Bianco <enricob@gmail.com> | |
Date: Mon, 16 Nov 2009 10:30:37 -0500 | |
Subject: [PATCH] RtTimeoutTest, test_damaged_restart: assert floating point values to be within 1.0e | |
-6 as opposed to EXACTLY equal | |
--- | |
test/functional/rt_5_timeout.rb | 2 +- | |
1 files changed, 1 insertions(+), 1 deletions(-) | |
diff --git a/test/functional/rt_5_timeout.rb b/test/functional/rt_5_timeout.rb | |
index 5eb46aa..747a4e3 100644 | |
--- a/test/functional/rt_5_timeout.rb | |
+++ b/test/functional/rt_5_timeout.rb | |
@@ -91,7 +91,7 @@ class RtTimeoutTest < Test::Unit::TestCase | |
assert_equal 1, @engine.processes.size | |
assert_equal 1, @engine.scheduler.jobs.size | |
- assert_equal at, @engine.scheduler.jobs.values.first.at | |
+ assert_in_delta at, @engine.scheduler.jobs.values.first.at, 1.0e-6 | |
sleep 0.400 | |
-- | |
1.6.0.2 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment