Skip to content

Commit

Permalink
Use the size appropriately in the release test (#2145)
Browse files Browse the repository at this point in the history
  • Loading branch information
akshita31 authored Mar 29, 2018
1 parent 0514e83 commit 3488e2f
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions test/releaseTests/vsix.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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);
});
Expand Down

0 comments on commit 3488e2f

Please sign in to comment.