mirror of
https://github.com/readur/readur.git
synced 2025-12-22 23:01:06 -06:00
fix(tests): fix tests for latest ocr file size change
This commit is contained in:
@@ -193,7 +193,9 @@ pub fn create_test_config() -> Config {
|
|||||||
concurrent_ocr_jobs: 2,
|
concurrent_ocr_jobs: 2,
|
||||||
ocr_timeout_seconds: 60,
|
ocr_timeout_seconds: 60,
|
||||||
max_file_size_mb: 50,
|
max_file_size_mb: 50,
|
||||||
|
max_pdf_size_mb: 100,
|
||||||
|
max_office_document_size_mb: 100,
|
||||||
|
|
||||||
// Performance
|
// Performance
|
||||||
memory_limit_mb: 256,
|
memory_limit_mb: 256,
|
||||||
cpu_priority: "normal".to_string(),
|
cpu_priority: "normal".to_string(),
|
||||||
|
|||||||
@@ -827,7 +827,9 @@ impl TestConfigBuilder {
|
|||||||
concurrent_ocr_jobs: self.concurrent_ocr_jobs,
|
concurrent_ocr_jobs: self.concurrent_ocr_jobs,
|
||||||
ocr_timeout_seconds: self.ocr_timeout_seconds,
|
ocr_timeout_seconds: self.ocr_timeout_seconds,
|
||||||
max_file_size_mb: self.max_file_size_mb,
|
max_file_size_mb: self.max_file_size_mb,
|
||||||
|
max_pdf_size_mb: 100,
|
||||||
|
max_office_document_size_mb: 100,
|
||||||
|
|
||||||
// Performance
|
// Performance
|
||||||
memory_limit_mb: self.memory_limit_mb as usize,
|
memory_limit_mb: self.memory_limit_mb as usize,
|
||||||
cpu_priority: "normal".to_string(),
|
cpu_priority: "normal".to_string(),
|
||||||
|
|||||||
Reference in New Issue
Block a user