-
-
Notifications
You must be signed in to change notification settings - Fork 4.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Remove test delays #5579
Remove test delays #5579
Changes from 5 commits
b53a0ec
a44374f
d04e91c
4f8e08a
35d167f
c8f483c
b40d040
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -158,12 +158,10 @@ describe('ParseLiveQueryServer', function() { | |
classNames: ['Yolo'], | ||
}, | ||
startLiveQueryServer: true, | ||
__indexBuildCompletionCallbackForTests: promise => { | ||
promise.then(() => { | ||
expect(parseServer.liveQueryServer).not.toBeUndefined(); | ||
expect(parseServer.liveQueryServer.server).toBe(parseServer.server); | ||
parseServer.server.close(() => done()); | ||
}); | ||
serverStartComplete: () => { | ||
expect(parseServer.liveQueryServer).not.toBeUndefined(); | ||
expect(parseServer.liveQueryServer.server).toBe(parseServer.server); | ||
parseServer.server.close(() => done()); | ||
}, | ||
}); | ||
}); | ||
|
@@ -181,15 +179,13 @@ describe('ParseLiveQueryServer', function() { | |
liveQueryServerOptions: { | ||
port: 22347, | ||
}, | ||
__indexBuildCompletionCallbackForTests: promise => { | ||
promise.then(() => { | ||
expect(parseServer.liveQueryServer).not.toBeUndefined(); | ||
expect(parseServer.liveQueryServer.server).not.toBe( | ||
parseServer.server | ||
); | ||
parseServer.liveQueryServer.server.close(() => { | ||
parseServer.server.close(() => done()); | ||
}); | ||
serverStartComplete: () => { | ||
expect(parseServer.liveQueryServer).not.toBeUndefined(); | ||
expect(parseServer.liveQueryServer.server).not.toBe( | ||
parseServer.server | ||
); | ||
parseServer.liveQueryServer.server.close(() => { | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. hm. maybe...
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. just changed to parseServer.liveQueryServer.server.close(parseServer.server.close.bind(parseServer.server, done)) |
||
parseServer.server.close(() => done()); | ||
}); | ||
}, | ||
}); | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
#!/usr/bin/env node | ||
|
||
const ParseServer = require('../../lib/index').ParseServer; | ||
|
||
ParseServer.start({ | ||
appId: 'test', | ||
masterKey: 'test', | ||
databaseURI: | ||
'mongodb://doesnotexist:27017/parseServerMongoAdapterTestDatabase', | ||
}); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
parseServer.server.close(done);
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
just changed