fix(back-end): file error handling
This commit is contained in:
@@ -22,4 +22,5 @@ spring.servlet.multipart.max-request-size=200MB
|
||||
# ClamAV Configuration
|
||||
clamav.host=${CLAMAV_HOST:clamav}
|
||||
clamav.port=${CLAMAV_PORT:3310}
|
||||
clamav.enabled=${CLAMAV_ENABLED:false}
|
||||
|
||||
|
||||
@@ -13,7 +13,7 @@ public class TestConfig {
|
||||
@Bean
|
||||
@Primary
|
||||
public ClamAVService mockClamAVService() {
|
||||
return new ClamAVService("localhost", 3310) {
|
||||
return new ClamAVService("localhost", 3310, true) {
|
||||
@Override
|
||||
public boolean scan(InputStream inputStream) {
|
||||
return true; // Always clean for tests
|
||||
|
||||
Reference in New Issue
Block a user