diff --git a/.github/workflows/e2e-tests.yml b/.github/workflows/e2e-tests.yml index dbc329c..a0b7a32 100644 --- a/.github/workflows/e2e-tests.yml +++ b/.github/workflows/e2e-tests.yml @@ -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 diff --git a/src/models.rs b/src/models.rs index 2b9e394..ead4a20 100644 --- a/src/models.rs +++ b/src/models.rs @@ -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, diff --git a/tests/cancellation_tests.rs b/tests/cancellation_tests.rs index 9c76f61..c80bd6e 100644 --- a/tests/cancellation_tests.rs +++ b/tests/cancellation_tests.rs @@ -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); }