diff --git a/test/simple/test-fs-watch.js b/test/simple/test-fs-watch.js index fc0b00e9263..44510b20d71 100644 --- a/test/simple/test-fs-watch.js +++ b/test/simple/test-fs-watch.js @@ -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 {