-
Notifications
You must be signed in to change notification settings - Fork 118
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
watch: move lastPath storage to handler
This commit fixes a bug where attempting to redo after a debug run would run tests in the wrong package. The problem was that debug would create a test binary in the working directory. The creation of that file would trigger an event. The event wouldn't be handled, but it still caused prevPath to be updated. By moving the storage of the lastPath to handler it removes the need for the Save method on redoHandler, and keeps the tracking of the previous run details (last time.Time) together.
- Loading branch information
Showing
3 changed files
with
10 additions
and
18 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters