Skip to content

Commit b85bca1

Browse files
committed
test: update elapsed error test to sleep longer to prevent intermittent test failure
1 parent 321150e commit b85bca1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

postgresql_embedded/src/error.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,7 @@ mod test {
108108
#[tokio::test]
109109
async fn test_from_elapsed_error() {
110110
let result = tokio::time::timeout(std::time::Duration::from_nanos(1), async {
111-
tokio::time::sleep(std::time::Duration::from_millis(1)).await;
111+
tokio::time::sleep(std::time::Duration::from_secs(1)).await;
112112
})
113113
.await;
114114
assert!(result.is_err());

0 commit comments

Comments
 (0)