diff --git a/lib/server.js b/lib/server.js index d2f763f4..425297ec 100644 --- a/lib/server.js +++ b/lib/server.js @@ -2,6 +2,7 @@ var Gun = require('../gun'), u; Gun.serve = require('./serve'); //process.env.GUN_ENV = process.env.GUN_ENV || 'debug'; + console.LOG = true; // only temporarily, REVERT THIS IN FUTURE! Gun.on('opt', function(root){ if(u === root.opt.super){ root.opt.super = true; diff --git a/test/common.js b/test/common.js index 8bf55968..91f6615b 100644 --- a/test/common.js +++ b/test/common.js @@ -3774,6 +3774,24 @@ describe('Gun', function(){ done(); }) }); + + /*describe('talk to live server tests', function(){ + this.timeout(1000 * 9); + it.only('Second once on undefined should call', function(done){ // this test is passing when it fails by hand? + var gun = Gun('https://gunjs.herokuapp.com/gun'); + gun.get('~@O8H2BJa4pNfecWamWN7efd888Pg1@hackernoon').once(function(data){ + console.log(1, data); + expect(data).to.not.be.ok(); + setTimeout(function(){ + gun.get('~@O8H2BJa4pNfecWamWN7efd888Pg1@hackernoon').once(function(data){ + console.log(2, data); + expect(data).to.not.be.ok(); + done(); + }); + }, 3000); + }); + }); + });*/ return; it('Nested listener should be called', function(done){