Skip to content

Commit 4c4e435

Browse files
committed
Replace deprecated Time.Span.of_sec in async tests.
1 parent e9f9ac7 commit 4c4e435

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

examples/async/nonblocking_async_example.ml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ module M = Mariadb.Nonblocking.Make(struct
4242
else idle in
4343
let tt =
4444
let tmout = float (Mariadb.Nonblocking.timeout mariadb) in
45-
if S.timeout status then Clock.after (Time.Span.of_sec tmout)
45+
if S.timeout status then Clock.after (Time_float.Span.of_sec tmout)
4646
else idle in
4747
ready (rt, wt, tt) >>= fun (read, write, timeout) ->
4848
Fd.close ~file_descriptor_handling:Fd.Do_not_close_file_descriptor fd

tests/nonblocking-async/nonblocking_testsuite_async.ml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ module Wait = struct
3939
let wt = if S.write status then Fd.ready_to fd `Write else idle in
4040
let tt =
4141
let tmout = float (Mariadb.Nonblocking.timeout mariadb) in
42-
if S.timeout status then Clock.after (Time.Span.of_sec tmout)
42+
if S.timeout status then Clock.after (Time_float.Span.of_sec tmout)
4343
else idle in
4444
ready (rt, wt, tt) >>= fun (read, write, timeout) ->
4545
Fd.close ~file_descriptor_handling:Fd.Do_not_close_file_descriptor fd

0 commit comments

Comments
 (0)