We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3cd427d commit 2ba8c2bCopy full SHA for 2ba8c2b
postgresql_embedded/src/error.rs
@@ -80,8 +80,6 @@ impl From<tokio::time::error::Elapsed> for EmbeddedError {
80
#[cfg(test)]
81
mod test {
82
use super::*;
83
- use std::time::Duration;
84
- use tokio::time::timeout;
85
86
#[test]
87
fn test_from_archive_error() {
@@ -114,8 +112,8 @@ mod test {
114
112
#[cfg(feature = "tokio")]
115
113
#[tokio::test]
116
async fn test_from_elapsed_error() {
117
- let result = timeout(Duration::from_nanos(1), async {
118
- tokio::time::sleep(Duration::from_millis(1)).await;
+ let result = tokio::time::timeout(std::time::Duration::from_nanos(1), async {
+ tokio::time::sleep(std::time::Duration::from_millis(1)).await;
119
})
120
.await;
121
assert!(result.is_err());
0 commit comments