mirror of
https://github.com/t8y2/dbx.git
synced 2026-10-19 16:16:45 +00:00
fix(core): skip connection identity probe in snapshot test history
This commit is contained in:
@@ -7080,7 +7080,12 @@ mod tests {
|
||||
(b'n', Vec::new())
|
||||
}
|
||||
b'E' => {
|
||||
commands.lock().unwrap().push(statement.clone());
|
||||
// The driver resolves the connection identity once per
|
||||
// physical connection at checkout; it is driver plumbing,
|
||||
// not part of the session statement history under test.
|
||||
if !statement.starts_with("SELECT pg_backend_pid") {
|
||||
commands.lock().unwrap().push(statement.clone());
|
||||
}
|
||||
if fail_once == Some(statement.as_str()) {
|
||||
fail_once = None;
|
||||
(b'E', b"SERROR\0CXX000\0Mtest statement failed\0\0".to_vec())
|
||||
|
||||
Reference in New Issue
Block a user