Skip to content

Commit

Permalink
test: fixed warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
pveber committed Nov 19, 2018
1 parent b6072d5 commit 70111ce
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 8 deletions.
2 changes: 0 additions & 2 deletions lib/test/accordion.ml
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
open Core
open Lwt
open Bistro.Std
open Bistro.EDSL
open Bistro_engine
open Bistro_utils

module Workflow = Bistro.Workflow
Expand Down
2 changes: 0 additions & 2 deletions lib/test/map_command.ml
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
open Core
open Bistro.Std
open Bistro.EDSL
open Bistro_utils

Expand All @@ -26,7 +25,6 @@ let main () =
|> ignore

let command =
let open Command.Let_syntax in
Command.basic
~summary:"Test of map command workflows"
(Command.Param.return main)
2 changes: 1 addition & 1 deletion lib/test/ppx_test.ml
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ let main () =
let bed2 = comment_filter (create_file "# comment\n# comment\nchr10\t42\t100\n") in
Bistro.(
match Workflow.u bed with
| Step { descr ; version ; mem } ->
| Step { descr ; version ; mem ; _ } ->
assert (descr = "foobar") ;
assert (version = Some 42) ;
assert (mem = 1)
Expand Down
6 changes: 3 additions & 3 deletions lib/test/prime_tdag.ml
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ module Task = struct
performed := i :: !performed ;
t, Ok ()

let post_revdeps_hook (Push i) _ ~all_revdeps_succeeded:_ =
let post_revdeps_hook (Push _) _ ~all_revdeps_succeeded:_ =
Lwt.return ()

let clean _ _ = Lwt.return ()
Expand Down Expand Up @@ -149,7 +149,7 @@ module TG = struct
end


let check_state remaining started ended not_needed_anymore =
let check_state remaining started _ended not_needed_anymore =
Int.Set.iter started ~f:(fun i ->
Int.Set.iter started ~f:(fun j ->
if i <> j && (i mod 2 = j mod 2)
Expand Down Expand Up @@ -195,7 +195,7 @@ let check_events n xs =
|> ignore

let check_performed xs =
if List.contains_dup xs
if List.contains_dup ~compare xs
then failwith "A task has been performed twice"

let command =
Expand Down

0 comments on commit 70111ce

Please sign in to comment.