fix(core): skip connection identity probe in snapshot test history

This commit is contained in:
t8y2
2026-10-11 13:53:16 +08:00
parent a7090cea7e
commit 56ec883fb7
+6 -1
View File
@@ -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())