-
Notifications
You must be signed in to change notification settings - Fork 2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix flaky tests #3434
Fix flaky tests #3434
Conversation
The most recent failure from the TestStateStore_Blocking_Timeout is fixed on master which is why I haven't fixed it in this PR |
@@ -221,15 +221,14 @@ test: ## Run the Nomad test suite and/or the Nomad UI test suite | |||
fi | |||
|
|||
.PHONY: test-nomad | |||
test-nomad: LOCAL_PACKAGES = $(shell go list ./... | grep -v '/vendor/') |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good riddance grep -v vendor
!
client/driver/docker_test.go
Outdated
func dockerTask(t *testing.T) (*structs.Task, int, int) { | ||
ports := freeport.GetT(t, 2) | ||
docker_reserved := ports[0] | ||
docker_dynamic := ports[1] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If you're touching this mind updating the variable naming to match regular Go style?
@@ -265,7 +265,7 @@ func TestRawExecDriver_HandlerExec(t *testing.T) { | |||
Driver: "raw_exec", | |||
Config: map[string]interface{}{ | |||
"command": testtask.Path(), | |||
"args": []string{"sleep", "9000"}, | |||
"args": []string{"sleep", "9000s"}, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This looks like it was fun to debug. :)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Took me so long! Literally went home after I found the bug. I was just done haha
I'm going to lock this pull request because it has been closed for 120 days ⏳. This helps our maintainers find and focus on the active contributions. |
No description provided.