Skip to content

Commit

Permalink
Unfair test, relies on the symptom I am "curing"
Browse files Browse the repository at this point in the history
  • Loading branch information
erikkemperman committed Nov 5, 2015
1 parent 1635a32 commit 9eaa98c
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions test/dest.js
Original file line number Diff line number Diff line change
Expand Up @@ -620,7 +620,6 @@ describe('dest stream', function() {
var expectedContents = fs.readFileSync(inputPath);
var expectedCwd = __dirname;
var expectedBase = path.join(__dirname, './out-fixtures');
var expectedAtime = new Date();
var expectedMtime = fs.lstatSync(inputPath).mtime;

var expectedFile = new File({
Expand All @@ -633,15 +632,10 @@ describe('dest stream', function() {
}
});

// Node.js uses `utime()`, so `fs.utimes()` has a resolution of 1 second
expectedAtime.setMilliseconds(0)
expectedMtime.setMilliseconds(0)

var onEnd = function(){
buffered.length.should.equal(1);
buffered[0].should.equal(expectedFile);
fs.existsSync(expectedPath).should.equal(true);
fs.lstatSync(expectedPath).atime.getTime().should.equal(expectedAtime.getTime());
fs.lstatSync(expectedPath).mtime.getTime().should.equal(expectedMtime.getTime());
expectedFile.stat.should.have.property('mtime');
expectedFile.stat.mtime.should.equal(expectedMtime);
Expand Down

0 comments on commit 9eaa98c

Please sign in to comment.