mirror of
https://github.com/meteor/meteor.git
synced 2026-05-02 03:01:46 -04:00
calling Meteor.callAsync to set userId in test
This commit is contained in:
@@ -202,10 +202,10 @@ if (Meteor.isServer) {
|
||||
/// Helper for "livedata - setUserId fails when called on server"
|
||||
|
||||
if (Meteor.isServer) {
|
||||
Meteor.startup(function() {
|
||||
Meteor.startup(async function() {
|
||||
errorThrownWhenCallingSetUserIdDirectlyOnServer = null;
|
||||
try {
|
||||
Meteor.call('setUserId', '1000');
|
||||
await Meteor.callAsync('setUserId', '1000');
|
||||
} catch (e) {
|
||||
errorThrownWhenCallingSetUserIdDirectlyOnServer = e;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user