Skip to content

Commit

Permalink
Fix async test
Browse files Browse the repository at this point in the history
  • Loading branch information
ansis committed Jul 12, 2012
1 parent dccfd9d commit dcea549
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion test/test.js
Expand Up @@ -126,7 +126,7 @@ it('detects paths starting with / as absolute on Windows', function() {

process.platform = realPlatform;

it('correctly caches files', function() {
it('correctly caches files', function(done) {
var mml = JSON.parse(fs.readFileSync(path.join(__dirname, 'cache/cache.mml')));

// Set absolute paths dynamically at test time.
Expand Down Expand Up @@ -273,6 +273,7 @@ it('correctly caches files', function() {
fs.unlinkSync(path.join(__dirname, 'cache/layers/absolute-shp'));
fs.unlinkSync(path.join(__dirname, 'cache/layers/polygons.json'));
fs.unlinkSync(path.join(__dirname, 'cache/layers/csv'));
done();
});
});
});

0 comments on commit dcea549

Please sign in to comment.