Skip to content

Commit e770db4

Browse files
Fixes intermittently failing test.
2 parents 52550b8 + 7e76d78 commit e770db4

File tree

1 file changed

+10
-10
lines changed

1 file changed

+10
-10
lines changed

test/binary-test.js

+10-10
Original file line numberDiff line numberDiff line change
@@ -663,15 +663,15 @@ vows.describe('cleancss')
663663
'topic': function() {
664664
var self = this;
665665

666-
exec('cp test/fixtures/reset.css test/fixtures/reset-removing.css', function () {
667-
exec('__DIRECT__=1 ./bin/cleancss test/fixtures/reset-removing.css', self.callback);
666+
exec('cp test/fixtures/reset.css test/fixtures/reset-removing-1.css', function () {
667+
exec('__DIRECT__=1 ./bin/cleancss test/fixtures/reset-removing-1.css', self.callback);
668668
});
669669
},
670670
'keeps the file': function () {
671-
assert.isTrue(fs.existsSync('test/fixtures/reset-removing.css'));
671+
assert.isTrue(fs.existsSync('test/fixtures/reset-removing-1.css'));
672672
},
673673
'teardown': function () {
674-
deleteFile('test/fixtures/reset-removing.css');
674+
deleteFile('test/fixtures/reset-removing-1.css');
675675
}
676676
}
677677
})
@@ -680,12 +680,12 @@ vows.describe('cleancss')
680680
'topic': function() {
681681
var self = this;
682682

683-
exec('cp test/fixtures/reset.css test/fixtures/reset-removing.css', function () {
684-
exec('__DIRECT__=1 ./bin/cleancss --remove-inlined-files test/fixtures/reset-removing.css', self.callback);
683+
exec('cp test/fixtures/reset.css test/fixtures/reset-removing-2.css', function () {
684+
exec('__DIRECT__=1 ./bin/cleancss --remove-inlined-files test/fixtures/reset-removing-2.css', self.callback);
685685
});
686686
},
687687
'removes the file': function () {
688-
assert.isFalse(fs.existsSync('test/fixtures/reset-removing.css'));
688+
assert.isFalse(fs.existsSync('test/fixtures/reset-removing-2.css'));
689689
}
690690
}
691691
})
@@ -694,12 +694,12 @@ vows.describe('cleancss')
694694
'topic': function() {
695695
var self = this;
696696

697-
exec('cp test/fixtures/reset.css test/fixtures/reset-removing.css', function () {
698-
exec('echo "@import \'test/fixtures/reset-removing.css\';" | ./bin/cleancss --remove-inlined-files', self.callback);
697+
exec('cp test/fixtures/reset.css test/fixtures/reset-removing-3.css', function () {
698+
exec('echo "@import \'test/fixtures/reset-removing-3.css\';" | ./bin/cleancss --remove-inlined-files', self.callback);
699699
});
700700
},
701701
'removes the file': function () {
702-
assert.isFalse(fs.existsSync('test/fixtures/reset-removing.css'));
702+
assert.isFalse(fs.existsSync('test/fixtures/reset-removing-3.css'));
703703
}
704704
}
705705
})

0 commit comments

Comments
 (0)