From b48f7f7eacb910b060515be9940f459f50fdeb02 Mon Sep 17 00:00:00 2001 From: isaacs Date: Sun, 20 May 2012 00:17:18 -0300 Subject: [PATCH] test: Solaris is not as granular with rename fs watch events --- test/simple/test-fs-watch.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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 {