Fix timeouts for short doubles Timeouts apparently don't actually work unless you use a test generator. Which makes sense in hindsight.
Project: http://git-wip-us.apache.org/repos/asf/couchdb-jiffy/repo Commit: http://git-wip-us.apache.org/repos/asf/couchdb-jiffy/commit/eb70deb8 Tree: http://git-wip-us.apache.org/repos/asf/couchdb-jiffy/tree/eb70deb8 Diff: http://git-wip-us.apache.org/repos/asf/couchdb-jiffy/diff/eb70deb8 Branch: refs/heads/master Commit: eb70deb8317cb04d09eed5a298123e6f6d00d6e3 Parents: a232221 Author: Paul J. Davis <[email protected]> Authored: Mon Jun 16 21:39:49 2014 -0500 Committer: Paul J. Davis <[email protected]> Committed: Mon Jun 16 21:40:26 2014 -0500 ---------------------------------------------------------------------- test/jiffy_10_short_double_tests.erl | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/couchdb-jiffy/blob/eb70deb8/test/jiffy_10_short_double_tests.erl ---------------------------------------------------------------------- diff --git a/test/jiffy_10_short_double_tests.erl b/test/jiffy_10_short_double_tests.erl index bb2f1b8..56272fe 100644 --- a/test/jiffy_10_short_double_tests.erl +++ b/test/jiffy_10_short_double_tests.erl @@ -12,9 +12,9 @@ filename() -> "../test/cases/short-doubles.txt". -short_double_test() -> +short_double_test_() -> {ok, Fd} = file:open(filename(), [read, binary, raw]), - {"all doubles round trip", {timeout, 300, ?assertEqual(0, run(Fd, 0))}}. + {timeout, 300, ?_assertEqual(0, run(Fd, 0))}. run(Fd, Acc) ->
