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 Monitor test #2413

Merged
merged 1 commit into from
Jul 5, 2019
Merged

Conversation

dgageot
Copy link
Contributor

@dgageot dgageot commented Jul 5, 2019

Fixes #2410

Also remove the unused function arguments

Fixes GoogleContainerTools#2410

Also remove the unused function arguments
@codecov
Copy link

codecov bot commented Jul 5, 2019

Codecov Report

Merging #2413 into master will not change coverage.
The diff coverage is 33.33%.

Impacted Files Coverage Δ
pkg/skaffold/runner/listen.go 0% <0%> (ø) ⬆️
pkg/skaffold/filemon/monitor.go 81.25% <100%> (ø) ⬆️

@dgageot
Copy link
Contributor Author

dgageot commented Jul 5, 2019

@corneliusweig would you mind taking a look at this PR? I'm trying to fix all known flaky tests

@dgageot
Copy link
Contributor Author

dgageot commented Jul 5, 2019

This test was green 10 times with this PR: #2414. I'm trying 20 more runs

@corneliusweig
Copy link
Contributor

I'm taking a look (can't assign myself).

ctx, cancel := context.WithCancel(context.Background())
var stopped sync.WaitGroup
stopped.Add(1)
go func() {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice, that's much simpler.

It really makes more sense to test synchronous code with a synchronous test :)

@dgageot
Copy link
Contributor Author

dgageot commented Jul 5, 2019

Thanks @corneliusweig for reviewing!

@dgageot dgageot merged commit 0a50916 into GoogleContainerTools:master Jul 5, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

TestFileMonitor is flaky
3 participants