From 78a75e87757b653d001d18c88ece2c7df3da63fe Mon Sep 17 00:00:00 2001 From: Di Weng Date: Mon, 7 Oct 2024 22:32:02 +0800 Subject: [PATCH] Convert MOUNT_DEFAULT_TIMEOUT into integer --- src/utils/mount.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/utils/mount.js b/src/utils/mount.js index 0448557..3d445a0 100644 --- a/src/utils/mount.js +++ b/src/utils/mount.js @@ -10,7 +10,7 @@ const FINDMNT_COMMON_OPTIONS = [ "--nofsroot", // prevents unwanted behavior with cifs volumes ]; -const DEFAULT_TIMEOUT = process.env.MOUNT_DEFAULT_TIMEOUT || 30000; +const DEFAULT_TIMEOUT = process.env.MOUNT_DEFAULT_TIMEOUT ? +process.env.MOUNT_DEFAULT_TIMEOUT : 3000; class Mount { constructor(options = {}) {