Skip to content

Commit

Permalink
Increase timeouts for slow architecture (Closes: #18).
Browse files Browse the repository at this point in the history
  • Loading branch information
gildor478 committed Jul 11, 2020
1 parent d3f0e22 commit 378f33d
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 4 deletions.
3 changes: 3 additions & 0 deletions CHANGES.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,9 @@
- Minimal OCaml version is now 4.04.
- Make colored output and JUnit features more prominent in the documentation.
(Closes: #13, #12)
- Increase default timeouts, so that they work as well for slow architecture
like s390x. The fastest timeout is now 20s (immediate test) and the longest
is 1h (huge test). (Closes: #18)

## v2.2.2 - 2020-01-24

Expand Down
8 changes: 4 additions & 4 deletions src/lib/ounit2/advanced/oUnitTest.ml
Original file line number Diff line number Diff line change
Expand Up @@ -98,10 +98,10 @@ type test =

let delay_of_length =
function
| Immediate -> 1.0
| Short -> 60.0
| Long -> 600.0
| Huge -> 1800.0
| Immediate -> 20.0 (* 20 seconds *)
| Short -> 600.0 (* 10 minutes *)
| Long -> 1800.0 (* 30 minutes *)
| Huge -> 3600.0 (* 1 hour *)
| Custom_length f -> f

let get_shard_id test_ctxt =
Expand Down

0 comments on commit 378f33d

Please sign in to comment.