feat(tests): resolve last test issues

This commit is contained in:
perf3ct 2025-06-17 22:14:38 +00:00
parent 14af90c657
commit 4f36e40e38
3 changed files with 2 additions and 6 deletions

View File

@ -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

View File

@ -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,

View File

@ -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);
}