-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathintegration.rs
More file actions
24 lines (20 loc) · 829 Bytes
/
integration.rs
File metadata and controls
24 lines (20 loc) · 829 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
//! Integration tests for `TestCommandHandler`
use crate::infrastructure::remote_actions::RemoteActionError;
use crate::shared::command::CommandError;
use super::super::*;
#[test]
fn it_should_have_correct_error_type_conversions() {
// Test that all error types can convert to TestCommandHandlerError
let command_error = CommandError::StartupFailed {
command: "test".to_string(),
source: std::io::Error::new(std::io::ErrorKind::NotFound, "test"),
};
let test_error: TestCommandHandlerError = command_error.into();
drop(test_error);
let remote_action_error = RemoteActionError::ValidationFailed {
action_name: "test".to_string(),
message: "test error".to_string(),
};
let test_error: TestCommandHandlerError = remote_action_error.into();
drop(test_error);
}