Skip to content
This repository has been archived by the owner on Mar 9, 2021. It is now read-only.

Commit

Permalink
fix tests and start for within
Browse files Browse the repository at this point in the history
  • Loading branch information
JerrySievert committed Jan 11, 2014
1 parent 24201c3 commit 8f22000
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 12 deletions.
6 changes: 2 additions & 4 deletions browser/terraformer-geostore.js
Original file line number Diff line number Diff line change
Expand Up @@ -608,8 +608,6 @@ Stream.prototype.unpipe = function (destination) {
}
};

sync.start();

var error = function(){
completed++;
errors++;
Expand Down Expand Up @@ -638,9 +636,9 @@ Stream.prototype.unpipe = function (destination) {
callback(null, results);
}
}
});

sync.start();
sync.start();
});
}));

};
Expand Down
6 changes: 2 additions & 4 deletions node/terraformer-geostore.js
Original file line number Diff line number Diff line change
Expand Up @@ -482,8 +482,6 @@ var Stream = require('stream');
}
};

sync.start();

var error = function(){
completed++;
errors++;
Expand Down Expand Up @@ -512,9 +510,9 @@ var Stream = require('stream');
callback(null, results);
}
}
});

sync.start();
sync.start();
});
}));

};
Expand Down
1 change: 1 addition & 0 deletions spec/geostoreSpec.js
Original file line number Diff line number Diff line change
Expand Up @@ -515,6 +515,7 @@ describe("geostore", function() {
}
},
function (err, res) {
expect(err).toEqual(null);
expect(res.length).toEqual(1);
expect(res.id).toEqual(1);
});
Expand Down
6 changes: 2 additions & 4 deletions src/geostore.js
Original file line number Diff line number Diff line change
Expand Up @@ -391,8 +391,6 @@
}
};

sync.start();

var error = function(){
completed++;
errors++;
Expand Down Expand Up @@ -421,9 +419,9 @@
callback(null, results);
}
}
});

sync.start();
sync.start();
});
}));

};
Expand Down

0 comments on commit 8f22000

Please sign in to comment.