Pārlūkot izejas kodu

Adjust timeouts to a sane cutoff

pull/65/head
Paul J. Davis pirms 11 gadiem
vecāks
revīzija
fb1b7e7201
2 mainītis faili ar 4 papildinājumiem un 4 dzēšanām
  1. +1
    -1
      test/jiffy_10_short_double_tests.erl
  2. +3
    -3
      test/jiffy_11_proper_tests.erl

+ 1
- 1
test/jiffy_10_short_double_tests.erl Parādīt failu

@ -14,7 +14,7 @@ filename() -> "../test/cases/short-doubles.txt".
short_double_test() ->
{ok, Fd} = file:open(filename(), [read, binary, raw]),
{"all doubles round trip", ?assertEqual(0, run(Fd, 0))}.
{"all doubles round trip", {timeout, 300, ?assertEqual(0, run(Fd, 0))}}.
run(Fd, Acc) ->

+ 3
- 3
test/jiffy_11_proper_tests.erl Parādīt failu

@ -17,17 +17,17 @@ opts() ->
run(Name) ->
{msg("~s", [Name]), [
{timeout, 3600, ?_assert(proper:quickcheck(?MODULE:Name(), opts()))}
{timeout, 300, ?_assert(proper:quickcheck(?MODULE:Name(), opts()))}
]}.
proper_encode_decode_test_() ->
{timeout, 3600, [
[
run(prop_enc_dec),
run(prop_enc_dec_pretty),
run(prop_enc_no_crash),
run(prop_dec_no_crash_bin),
run(prop_dec_no_crash_any)
]}.
].
prop_enc_dec() ->
?FORALL(Data, json(),

Notiek ielāde…
Atcelt
Saglabāt