From 4e26850d275abd7d582a6567d69f32f4cabf8e86 Mon Sep 17 00:00:00 2001 From: Jonathan Cobb Date: Sat, 5 Dec 2020 12:56:02 -0500 Subject: [PATCH] allow small jar files during tests --- .../src/main/java/bubble/service/backup/BackupService.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bubble-server/src/main/java/bubble/service/backup/BackupService.java b/bubble-server/src/main/java/bubble/service/backup/BackupService.java index 2afb9fca..69b71260 100644 --- a/bubble-server/src/main/java/bubble/service/backup/BackupService.java +++ b/bubble-server/src/main/java/bubble/service/backup/BackupService.java @@ -135,7 +135,7 @@ public class BackupService extends SimpleDaemon { final String home = HOME_DIR; final File jarFile = configuration.getBubbleJar();; - if (!jarFile.exists() || jarFile.length() < 10*Bytes.MB) { + if (!jarFile.exists() || (jarFile.length() < 10*Bytes.MB && !configuration.testMode())) { return die("backup: jarFile not found or too small: "+abs(jarFile)); }