Skip to content

Commit

Permalink
CP-52709: Enable timeslice setting during unit tests by default
Browse files Browse the repository at this point in the history
  • Loading branch information
edwintorok committed Dec 11, 2024
1 parent 55a07ad commit be45ef5
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
1 change: 1 addition & 0 deletions ocaml/tests/common/dune
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@
xapi-stdext-date
xapi-stdext-threads.scheduler
xapi-stdext-unix
xapi_timeslice
)
)

4 changes: 3 additions & 1 deletion ocaml/tests/common/suite_init.ml
Original file line number Diff line number Diff line change
Expand Up @@ -11,4 +11,6 @@ let harness_init () =
Filename.concat Test_common.working_area "xapi-inventory" ;
Xcp_client.use_switch := false ;
Pool_role.set_pool_role_for_test () ;
Message_forwarding.register_callback_fns ()
Message_forwarding.register_callback_fns () ;
(* for unit tests use a fixed value *)
Xapi_timeslice.Timeslice.set 0.004

0 comments on commit be45ef5

Please sign in to comment.