feat(tests): resolve last test issues
This commit is contained in:
parent
14af90c657
commit
4f36e40e38
|
|
@ -54,10 +54,6 @@ jobs:
|
|||
working-directory: ./frontend
|
||||
run: npm run build
|
||||
|
||||
- name: Setup test database
|
||||
run: |
|
||||
PGPASSWORD=postgres psql -h localhost -U postgres -d readur_test -c "CREATE EXTENSION IF NOT EXISTS vector;"
|
||||
|
||||
- name: Run database migrations
|
||||
run: |
|
||||
# Set environment variables for test database
|
||||
|
|
|
|||
|
|
@ -721,7 +721,7 @@ pub struct FileInfo {
|
|||
pub is_directory: bool,
|
||||
}
|
||||
|
||||
#[derive(Debug, Clone, Serialize, Deserialize, PartialEq, ToSchema)]
|
||||
#[derive(Debug, Clone, Serialize, Deserialize, PartialEq, Eq, Hash, ToSchema)]
|
||||
pub enum SourceType {
|
||||
#[serde(rename = "webdav")]
|
||||
WebDAV,
|
||||
|
|
|
|||
|
|
@ -612,7 +612,7 @@ fn test_cancellation_state_transitions() {
|
|||
];
|
||||
|
||||
for (initial_status, cancellation_state, expected_final_status) in test_cases {
|
||||
let final_status = apply_cancellation_state_transition(initial_status, cancellation_state);
|
||||
let final_status = apply_cancellation_state_transition(initial_status, cancellation_state.clone());
|
||||
assert_eq!(final_status, expected_final_status,
|
||||
"Wrong final status for cancellation state: {:?}", cancellation_state);
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue