test: Solaris is not as granular with rename fs watch events

pull/24503/head
isaacs 2012-05-20 00:17:18 -03:00
parent a039bad299
commit b48f7f7eac
1 changed files with 2 additions and 1 deletions

View File

@ -108,7 +108,8 @@ try { fs.mkdirSync(testsubdir, 0700); } catch (e) {}
assert.doesNotThrow(
function() {
var watcher = fs.watch(testsubdir, function(event, filename) {
assert.equal('rename', event);
var renameEv = process.platform === 'solaris' ? 'change' : 'rename';
assert.equal(renameEv, event);
if (expectFilePath) {
assert.equal('newfile.txt', filename);
} else {