Gulp Causes Timeout in mocha

  node.js, question

Project inhttps://github.com/cgcgbcbc/gulp-chroot

The code is roughly as follows

javascript// test.js
 //   ...
 it('should work with promise', function(done) {
 gulp.chroot('child', function() {
 gulp.task('promise', function() {
 return gulp.src('test.txt')
 .pipe(through2.obj(function(){
 console.log('inside promise task');
 console.log(process.cwd());
 assert.equal(process.cwd(), path.join(__dirname, 'child'));
 }))
 .pipe(gulp.dest(path.join(__dirname, 'child', '2.txt')));
 });
 });
 gulp.task('sync', ['promise'], function() {
 console.log('inside sync');
 done();
 });
 gulp.start('sync');
 });

Why does this test time out when running?
The command to run the test ismocha --harmony --harmon-proxies

Come on, let you high:

it('should work with promise', function(done) {
 gulp.chroot('child', function() {
 gulp.task('promise', function() {
 
 return gulp.src('test.txt')
 .pipe((function() {
 var stream = through2.obj(function(file, encode, next) {
 console.log('inside promise task');
 console.log(process.cwd());
 assert.equal(process.cwd(), path.join(__dirname, 'child'));
 next();
 });
 stream.resume();
 return stream;
 }()))
 .pipe(gulp.dest(path.join(__dirname, 'child', '2.txt')));
 });
 });
 gulp.task('sync', ['promise'], function() {
 console.log('inside sync');
 done();
 });
 gulp.start('sync');
 });