fix: merge shared command diagnostic assertions
# Conflicts: # crates/workspace-server/src/server.rs
This commit is contained in:
@@ -8888,7 +8888,14 @@ mod tests {
|
|||||||
})
|
})
|
||||||
.await
|
.await
|
||||||
.expect_err("closed session must reject local operation without another request");
|
.expect_err("closed session must reject local operation without another request");
|
||||||
assert!(matches!(error, WorkdirError::Unavailable(_)));
|
assert!(matches!(
|
||||||
|
error.classification_source(),
|
||||||
|
WorkdirError::Unavailable(_)
|
||||||
|
));
|
||||||
|
assert_eq!(
|
||||||
|
error.failure_reason(),
|
||||||
|
Some(workdir::WorkdirFailureReason::SessionClosed)
|
||||||
|
);
|
||||||
server.join().expect("mock remote server finished");
|
server.join().expect("mock remote server finished");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user