diff options
| author | Luke Kanies <luke@madstop.com> | 2008-10-08 22:03:22 -0500 |
|---|---|---|
| committer | Luke Kanies <luke@madstop.com> | 2008-10-08 22:03:22 -0500 |
| commit | 53b7d42bb061ff1cfea3519179779a1cba2cf877 (patch) | |
| tree | 4a6156ca94f381b6340b820700fecfb61c72b67b /test/network/handler | |
| parent | 5ec6b0734d5656dbfcf89320d476e0aeeec500f5 (diff) | |
| download | puppet-53b7d42bb061ff1cfea3519179779a1cba2cf877.tar.gz puppet-53b7d42bb061ff1cfea3519179779a1cba2cf877.tar.xz puppet-53b7d42bb061ff1cfea3519179779a1cba2cf877.zip | |
Fixing the broken tests resulting from the fix for #1551.
The test was expecting the current time, albeit as an integer.
Signed-off-by: Luke Kanies <luke@madstop.com>
Diffstat (limited to 'test/network/handler')
| -rwxr-xr-x | test/network/handler/master.rb | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/test/network/handler/master.rb b/test/network/handler/master.rb index d342af88c..654404ae5 100755 --- a/test/network/handler/master.rb +++ b/test/network/handler/master.rb @@ -25,7 +25,9 @@ class TestMaster < Test::Unit::TestCase now1 = mock 'now1' Time.expects(:now).returns(now1) - assert_equal(@master.freshness, now1, "Did not return current time as freshness") + now1.expects(:to_i).returns 10 + + assert_equal(@master.freshness, 10, "Did not return current time as freshness") end def test_hostname_is_used_if_client_is_missing |
