Skip to content

Commit

Permalink
change sleep to 100ms instead of 2s
Browse files Browse the repository at this point in the history
It's enough time to get server up and running and that
reduces test time

Signed-off-by: Pavel Abramov <[email protected]>
  • Loading branch information
uncleDecart committed Sep 4, 2024
1 parent 700a64e commit 9c3b62c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/server/srv.rs
Original file line number Diff line number Diff line change
Expand Up @@ -410,7 +410,7 @@ mod tests {

// Give time for server to get up
// TODO: need to create a notification channel
tokio::time::sleep(tokio::time::Duration::from_secs(2)).await;
tokio::time::sleep(tokio::time::Duration::from_millis(100)).await;
let mut client = NkvClient::new(&url);

let value: Box<[u8]> = Box::new([9, 7, 3, 4, 5]);
Expand Down

0 comments on commit 9c3b62c

Please sign in to comment.