From 188ec9f10eee42ea77061ea3181f1db75092540e Mon Sep 17 00:00:00 2001 From: Kyle Robinson Young Date: Tue, 7 May 2013 12:15:24 -0700 Subject: [PATCH] Make the fixture tasks run a little longer so the watch thinks it did something. --- test/fixtures/fail/Gruntfile.js | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/test/fixtures/fail/Gruntfile.js b/test/fixtures/fail/Gruntfile.js index 86ec70b..8e75ea9 100644 --- a/test/fixtures/fail/Gruntfile.js +++ b/test/fixtures/fail/Gruntfile.js @@ -21,9 +21,17 @@ module.exports = function(grunt) { grunt.loadTasks('../../../tasks'); grunt.registerTask('warn', function() { - grunt.warn('This task should warn!'); + var done = this.async(); + setTimeout(function() { + grunt.warn('This task should warn!'); + done(); + }, 1); }); grunt.registerTask('fatal', function() { - grunt.fatal('This task should be fatal!'); + var done = this.async(); + setTimeout(function() { + grunt.fatal('This task should be fatal!'); + done(); + }, 1); }); };