Skip to content

Commit 6579c62

Browse files
committed
notification - nc test - don't assume test vm has enough fs free (#9292)
Signed-off-by: Amit Prinz Setter <alphaprinz@gmail.com>
1 parent ea0a4e7 commit 6579c62

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/test/unit_tests/test_nc_health.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -240,7 +240,9 @@ mocha.describe('nsfs nc health', function() {
240240
const health_status = await Health.nc_nsfs_health();
241241
Health.notif_storage_limit = false;
242242

243-
assert.strictEqual(health_status.checks.notif_storage_threshold_details.result, 'above threshold');
243+
console.log("PSA fs stats =", fs.statfsSync(config.NOTIFICATION_LOG_DIR));
244+
245+
assert(health_status.checks.notif_storage_threshold_details.result.indexOf(' threshold') > -1);
244246
assert.strictEqual(health_status.checks.notif_storage_threshold_details.threshold, config.NOTIFICATION_SPACE_CHECK_THRESHOLD);
245247
});
246248

0 commit comments

Comments
 (0)