Bumps minimum node engine to 8+ (#4474)
* Use node 8 as development environment * fixup! Use node 8 as development environment * bump node to 8.10 * Targets node 8 for everything * Run npm install so lock file is up to date * Use push adapter v3 * Deflake a test on ParseUser * Adds slight delay after logout * Ensure we wait even if call fails * Use node carbon
This commit is contained in:
@@ -3580,14 +3580,18 @@ describe('Parse.User testing', () => {
|
||||
email: 'yo@lo.com'
|
||||
}).then(() => {
|
||||
const token = user.getSessionToken();
|
||||
const promises = [];
|
||||
while(promises.length != 5) {
|
||||
promises.push(Parse.User.logIn('yolo', 'yolo').then((res) => {
|
||||
// ensure a new session token is generated at each login
|
||||
expect(res.getSessionToken()).not.toBe(token);
|
||||
}));
|
||||
let promise = Promise.resolve();
|
||||
let count = 0;
|
||||
while(count < 5) {
|
||||
promise = promise.then(() => {
|
||||
return Parse.User.logIn('yolo', 'yolo').then((res) => {
|
||||
// ensure a new session token is generated at each login
|
||||
expect(res.getSessionToken()).not.toBe(token);
|
||||
});
|
||||
});
|
||||
count++;
|
||||
}
|
||||
return Promise.all(promises);
|
||||
return promise;
|
||||
}).then(() => {
|
||||
// wait because session destruction is not synchronous
|
||||
return new Promise((resolve) => {
|
||||
|
||||
Reference in New Issue
Block a user