This repository was archived by the owner on Feb 20, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 29
Implement 1459203 (remove NSSM), 1436274 (use eventlog) #214
Open
milescrabill
wants to merge
15
commits into
master
Choose a base branch
from
no-more-nssm-merge-20190619
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
Show all changes
15 commits
Select commit
Hold shift + click to select a range
8334134
replace NSSM with x/sys/windows/svc
1b5bf2c
move multiuser_windows_service.go => multiuser_service_windows.go
f074efd
add windows vendored modules
cd9f14a
use elogWrapper to wrap eventlog and set it as a log output
b438d47
use CANT_LOG_PROPERLY for eventlog open fail
ecc18fc
windows: run go test with -tags multiuser
1cbeffa
change CANT_REMOVE_GENERIC_WORKER code to a fresh one
99d9d7b
add a test for install/remove service
115afd3
split out eventlog configuration from service configuration, fix test…
2a46fe7
fix race in Execute() / TestWindowsServiceInteraction
9c85674
cleanup service interaction test, more dodging race conditions, split…
518722b
address review feedback
77f8dcb
flesh out throwaway error comment
6787581
rename env var to skip admin required tests to GW_SKIP_ADMIN_REQUIRED…
5dff72c
add GW_SKIP_ADMIN_REQUIRED_TESTS doc to README
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains hidden or 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 hidden or 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 hidden or 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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -221,7 +221,8 @@ func execute(t *testing.T, expectedExitCode ExitCode) { | |
| if err != nil { | ||
| t.Fatalf("Test setup failure - could not write to tasks-resolved-count.txt file: %v", err) | ||
| } | ||
| exitCode := RunWorker() | ||
| interruptChan := make(chan os.Signal, 1) | ||
| exitCode := RunWorker(interruptChan) | ||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Does this allow us to
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I believe it does, yes. Were we not able to before? I changed this to match the signature of the function, which I had changed before running the tests (yikes!) :P |
||
|
|
||
| if exitCode != expectedExitCode { | ||
| t.Fatalf("Something went wrong executing worker - got exit code %v but was expecting exit code %v", exitCode, expectedExitCode) | ||
|
|
||
This file contains hidden or 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 hidden or 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 hidden or 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
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.