Skip to content

Commit 86b512c

Browse files
committed
fix flaky test
1 parent 0b8400c commit 86b512c

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

integration/test/ParseDistTest.js

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,13 @@ for (const fileName of ['parse.js', 'parse.min.js']) {
8787
}
8888
});
8989
await page.evaluate(async () => {
90-
const file = new Parse.File('parse-base64.txt', { base64: 'ParseA==' });
90+
const parseLogo =
91+
'https://raw.githubusercontent.com/parse-community/parse-server/master/.github/parse-server-logo.png';
92+
const logo = new Parse.File('parse-server-logo', { uri: parseLogo });
93+
await logo.save();
94+
const base64 = await logo.getData();
95+
96+
const file = new Parse.File('parse-base64.txt', { base64 });
9197
file.save().then(() => {});
9298

9399
const intervalId = setInterval(() => {
@@ -98,7 +104,7 @@ for (const fileName of ['parse.js', 'parse.min.js']) {
98104
}, 1);
99105
});
100106
await promise;
101-
expect(requestsCount).toBe(1);
107+
expect(requestsCount).toBe(3);
102108
expect(abortedCount).toBe(1);
103109
});
104110
});

0 commit comments

Comments
 (0)