From a428bfc349ef88bb6ccc7fc92efea7770c35b2c1 Mon Sep 17 00:00:00 2001 From: Akshita Agarwal Date: Thu, 29 Mar 2018 10:14:31 -0700 Subject: [PATCH] Changed to use the size appropriately --- test/releaseTests/vsix.test.ts | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/test/releaseTests/vsix.test.ts b/test/releaseTests/vsix.test.ts index 41b20d03f..506af2e2e 100644 --- a/test/releaseTests/vsix.test.ts +++ b/test/releaseTests/vsix.test.ts @@ -21,10 +21,11 @@ suite("Omnisharp-Vscode VSIX", async () => { }); vsixFiles.forEach(element => { - const maximumVsixSizeInBytes = 5 * 1024 * 1024; + const sizeInMB = 5; + const maximumVsixSizeInBytes = sizeInMB * 1024 * 1024; suite(`Given ${element}`, () => { - test(`Then its size is less than 1MB`, async () => { + test(`Then its size is less than ${sizeInMB}MB`, async () => { const stats = await fs.stat(element); stats.size.should.be.lessThan(maximumVsixSizeInBytes); });