Skip to content

Commit d27ea98

Browse files
authored
fix: fix idle in transaction timeout test (#708)
Caused by #707
1 parent e8d1917 commit d27ea98

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

pgdog/src/frontend/client/timeouts.rs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,6 @@ impl Timeouts {
6767

6868
#[cfg(test)]
6969
mod test {
70-
7170
use crate::{config::config, net::Query};
7271

7372
use super::*;
@@ -79,7 +78,7 @@ mod test {
7978

8079
let actual = timeout.client_idle_timeout(&State::IdleInTransaction, &ClientRequest::new());
8180
assert_eq!(actual, timeout.idle_in_transaction_timeout);
82-
assert_eq!(actual.as_millis(), u64::MAX.into());
81+
assert_eq!(actual.as_millis(), i64::MAX as u128);
8382

8483
let actual = timeout.client_idle_timeout(
8584
&State::IdleInTransaction,

0 commit comments

Comments
 (0)