feat(tests): resolve last test issues
This commit is contained in:
parent
14af90c657
commit
4f36e40e38
|
|
@ -54,10 +54,6 @@ jobs:
|
||||||
working-directory: ./frontend
|
working-directory: ./frontend
|
||||||
run: npm run build
|
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
|
- name: Run database migrations
|
||||||
run: |
|
run: |
|
||||||
# Set environment variables for test database
|
# Set environment variables for test database
|
||||||
|
|
|
||||||
|
|
@ -721,7 +721,7 @@ pub struct FileInfo {
|
||||||
pub is_directory: bool,
|
pub is_directory: bool,
|
||||||
}
|
}
|
||||||
|
|
||||||
#[derive(Debug, Clone, Serialize, Deserialize, PartialEq, ToSchema)]
|
#[derive(Debug, Clone, Serialize, Deserialize, PartialEq, Eq, Hash, ToSchema)]
|
||||||
pub enum SourceType {
|
pub enum SourceType {
|
||||||
#[serde(rename = "webdav")]
|
#[serde(rename = "webdav")]
|
||||||
WebDAV,
|
WebDAV,
|
||||||
|
|
|
||||||
|
|
@ -612,7 +612,7 @@ fn test_cancellation_state_transitions() {
|
||||||
];
|
];
|
||||||
|
|
||||||
for (initial_status, cancellation_state, expected_final_status) in test_cases {
|
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,
|
assert_eq!(final_status, expected_final_status,
|
||||||
"Wrong final status for cancellation state: {:?}", cancellation_state);
|
"Wrong final status for cancellation state: {:?}", cancellation_state);
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue