File tree Expand file tree Collapse file tree 1 file changed +7
-1
lines changed
test/WebJobs.Script.Tests Expand file tree Collapse file tree 1 file changed +7
-1
lines changed Original file line number Diff line number Diff line change @@ -122,7 +122,13 @@ public async Task OnDebugModeFileChanged_TriggeredWhenDebugFileUpdated()
122
122
File . WriteAllText ( debugSentinelFilePath , string . Empty ) ;
123
123
}
124
124
125
- host . LastDebugNotify = DateTime . MinValue ;
125
+ // first put the host into a non-debug state
126
+ await TestHelpers . Await ( ( ) =>
127
+ {
128
+ host . LastDebugNotify = DateTime . MinValue ;
129
+ return ! host . InDebugMode ;
130
+ } ) ;
131
+
126
132
Assert . False ( host . InDebugMode , $ "Expected InDebugMode to be false. Now: { DateTime . UtcNow } ; Sentinel LastWriteTime: { File . GetLastWriteTimeUtc ( debugSentinelFilePath ) } ; LastDebugNotify: { host . LastDebugNotify } .") ;
127
133
128
134
// verify that our file watcher for the debug sentinel file is configured
You can’t perform that action at this time.
0 commit comments