mirror of
https://github.com/danbulant/flying-squid
synced 2026-07-06 19:50:40 +00:00
fix test
This commit is contained in:
parent
73a18ef863
commit
767a3bfba1
2 changed files with 14 additions and 19 deletions
2
app.js
2
app.js
|
|
@ -24,6 +24,6 @@ var options = {
|
||||||
regionFolder: settings.regionFolder
|
regionFolder: settings.regionFolder
|
||||||
};
|
};
|
||||||
|
|
||||||
mcServer.createMCServer(options);
|
module.exports=mcServer.createMCServer(options);
|
||||||
|
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1,19 +1,14 @@
|
||||||
var boot = require('../app').boot,
|
var net = require('net');
|
||||||
shutdown = require('../app').shutdown,
|
describe("Server", function() {
|
||||||
port = require('../app').port;
|
before(function(done){
|
||||||
|
var serv=require("../app");
|
||||||
it('passes', function() {
|
serv.on("listening",function(){
|
||||||
return true;
|
done(null);
|
||||||
});
|
})
|
||||||
describe("Server", function() {
|
});
|
||||||
it("Is running", function(done) {
|
it("Is running", function(done) {
|
||||||
var client = net.Socket();
|
var client = net.Socket();
|
||||||
client.connect(25565, '127.0.0.1', function() {
|
client.connect(25565, '127.0.0.1', done);
|
||||||
client.close(); // or whatever the method to close the socket;
|
client.on('error', done);
|
||||||
done();
|
});
|
||||||
});
|
|
||||||
client.on('error', function(err) {
|
|
||||||
done();
|
|
||||||
});
|
|
||||||
});
|
|
||||||
});
|
});
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue