You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am trying to run drool via gulp-jasmine. A common problem experienced with gulp-jasmine is it not emiting the "end" event for its stream, as seen here: sindresorhus/gulp-jasmine#49. The basic answer given was that the tests being run in Jasmine are currently leaving processes unterminated, which prevents the 'end' event from being fired, since there are still active listeners. I am currently running the following test, based roughly on the example you provide in the docs. It seems like this exact issue is popping up for me:
vardrool=require('drool');varmemUtils=require(process.cwd()+'/src/_test/utilsMem.js');varconfig={chromeOptions: 'no-sandbox',};describe('ngAvatar component: ',function(){vardriver;beforeEach(function(){if(typeofprocess.env.chromeBinaryPath!=='undefined'){config.chromeBinaryPath=process.env.chromeBinaryPath;}driver=drool.start(config);});afterEach(function(){driver.quit();});it('should not leak memory when added, then removed',function(done){drool.flow({repeatCount: 10,setup: function(){returndriver.get(memUtils.getTestFile()).then(function(){returndriver.executeScript('myAppTest.start("ngAvatar");');}).catch(function(e){console.log(e.toString().red);})},action: function(){varcomponentStr='<ng-avatar img-src="./resources/twitter_prof_1.jpg"></ng-avatar>';returndriver.executeScript('window.testingScope = myAppTest.insert("#root", \''+componentStr+'\');').then(function(){returndriver.executeScript('myAppTest.destroy(window.testingScope);');}).then(function(){returndriver.executeScript('myAppTest.reset("#root");');}).catch(function(e){console.log(e.toString().red);})},beforeAssert: function(){returndriver.executeScript('myAppTest.digest();').then(function(){returndriver.sleep(4000);}).catch(function(e){console.log(e.toString().red);})},assert: function(after,initial){memUtils.log(after,initial);expect(after.counts.nodes).not.toBeGreaterThan(initial.counts.nodes);expect(after.counts.jsEventListeners).not.toBeGreaterThan(initial.counts.jsEventListeners);},exit: function(){done();}},driver);});});
Any thoughts on what the unterminated process could be?
I am trying to run drool via gulp-jasmine. A common problem experienced with gulp-jasmine is it not emiting the "end" event for its stream, as seen here: sindresorhus/gulp-jasmine#49. The basic answer given was that the tests being run in Jasmine are currently leaving processes unterminated, which prevents the 'end' event from being fired, since there are still active listeners. I am currently running the following test, based roughly on the example you provide in the docs. It seems like this exact issue is popping up for me:
Any thoughts on what the unterminated process could be?
Ps: some more details from the gulp side of things, if it helps: http://stackoverflow.com/questions/37756443/gulp-task-exits-before-stream-can-fire-an-end-event/37756998?noredirect=1#comment62983737_37756998
The text was updated successfully, but these errors were encountered: