Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save enricob/236063 to your computer and use it in GitHub Desktop.
Save enricob/236063 to your computer and use it in GitHub Desktop.
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