Skip to content

Node.js based forum software built for the modern web

fix: test

Barış Soner Uşaklı61c6a762ad90
diff --git a/test/socket.io.js b/test/socket.io.js
index 6b22e306af..9b5a0a5c07 100644
--- a/test/socket.io.js
+++ b/test/socket.io.js
@@ -315,8 +315,7 @@ describe('socket.io', function () {
});
it('should get server time', function (done) {
- var socketMeta = require('../src/socket.io/meta');
- socketMeta.getServerTime({ uid: 1 }, null, function (err, time) {
+ io.emit('admin.getServerTime', null, function (err, time) {
assert.ifError(err);
assert(time);
done();