diff --git a/test/spec/InlineEditorProviders-test.js b/test/spec/InlineEditorProviders-test.js
index <HASH>..<HASH> 100644
--- a/test/spec/InlineEditorProviders-test.js
+++ b/test/spec/InlineEditorProviders-test.js
@@ -243,9 +243,6 @@ define(function (require, exports, module) {
             afterEach(function () {
                 //debug visual confirmation of inline editor
                 //waits(1000);
-                runs(function () {
-                    SpecRunnerUtils.deletePath(tempPath);
-                });
                 
                 // revert files to original content with offset markup
                 SpecRunnerUtils.closeTestWindow();
@@ -1193,7 +1190,13 @@ define(function (require, exports, module) {
                     expect(inlineEditor).toHaveInlineEditorRange(toRange(0, 2));
                 });
             });
-            
+        
+            it("should delete the temp directory", function () {
+                // Delete the temp directory once we've run all of the tests
+                runs(function () {
+                    waitsForDone(SpecRunnerUtils.deletePath(tempPath));
+                });
+            });
         });
     });
 });
Cleanup the temp directory after running all tests.