Skip to content
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

Merged
merged 9 commits into from
Oct 25, 2017
Merged

Fix flaky tests #3434

merged 9 commits into from
Oct 25, 2017

Conversation

dadgar
Copy link
Contributor

@dadgar dadgar commented Oct 24, 2017

No description provided.

@dadgar
Copy link
Contributor Author

dadgar commented Oct 24, 2017

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/')
Copy link
Member

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!

func dockerTask(t *testing.T) (*structs.Task, int, int) {
ports := freeport.GetT(t, 2)
docker_reserved := ports[0]
docker_dynamic := ports[1]
Copy link
Member

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"},
Copy link
Member

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. :)

Copy link
Contributor Author

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

@dadgar dadgar merged commit b0304d1 into master Oct 25, 2017
@dadgar dadgar deleted the f-flaky branch October 25, 2017 17:49
@github-actions
Copy link

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.
If you have found a problem that seems related to this change, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Mar 19, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants