Skip to content

Commit

Permalink
update tests.
Browse files Browse the repository at this point in the history
  • Loading branch information
youngsofun committed Dec 6, 2023
1 parent 315c813 commit 768bf38
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/query/service/tests/it/servers/mysql/mysql_handler.rs
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,7 @@ async fn test_rejected_session_with_sequence() -> Result<()> {
{
// Accepted connection
let conn = create_connection(listening.port(), false).await?;
let conn2 = create_connection(listening.port(), false).await?;

// Rejected connection
match create_connection(listening.port(), false).await {
Expand All @@ -105,6 +106,7 @@ async fn test_rejected_session_with_sequence() -> Result<()> {
};

drop(conn);
drop(conn2);
}

// Wait for the connection to be destroyed
Expand Down Expand Up @@ -184,8 +186,8 @@ async fn test_rejected_session_with_parallel() -> Result<()> {
}
}

assert_eq!(accept, 1);
assert_eq!(rejected, 2);
assert_eq!(accept, 2);
assert_eq!(rejected, 1);

Ok(())
}
Expand Down

0 comments on commit 768bf38

Please sign in to comment.