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

TestGenerateFromEvents race condition #238

Open
adrianlzt opened this issue Feb 17, 2017 · 0 comments
Open

TestGenerateFromEvents race condition #238

adrianlzt opened this issue Feb 17, 2017 · 0 comments

Comments

@adrianlzt
Copy link

Several executions of the generator_test.go returns different outputs (I have deleted the rest of _test.go files).

$ go version  
go version go1.7.5 linux/amd64

$ git log -1
commit cb6223c73c82c4fbecae3a8d972d856ed6f026db
$ go test -v                 
=== RUN   TestGenerateFromEvents
--- FAIL: TestGenerateFromEvents (0.58s)
	generator_test.go:204: expected: 8dfafdbc3a40.5. got: 8dfafdbc3a40.6
	generator_test.go:204: expected: 8dfafdbc3a40.6. got: 8dfafdbc3a40.7
	generator_test.go:204: expected: 8dfafdbc3a40.7. got: 8dfafdbc3a40.5
FAIL
exit status 1
FAIL	_/var/tmp/docker-gen	0.584s

$ go test -v
=== RUN   TestGenerateFromEvents
--- PASS: TestGenerateFromEvents (0.58s)
PASS
ok  	_/var/tmp/docker-gen	0.585s

$ go test -v
=== RUN   TestGenerateFromEvents
--- FAIL: TestGenerateFromEvents (0.60s)
	generator_test.go:204: expected: 8dfafdbc3a40.6. got: 8dfafdbc3a40.7
	generator_test.go:204: expected: 8dfafdbc3a40.7. got: 8dfafdbc3a40.6
FAIL
exit status 1
FAIL	_/var/tmp/docker-gen	0.601s

$ go test -v          
=== RUN   TestGenerateFromEvents
--- PASS: TestGenerateFromEvents (0.58s)
PASS
ok  	_/var/tmp/docker-gen	0.585s

$ go test -v
=== RUN   TestGenerateFromEvents
--- PASS: TestGenerateFromEvents (0.58s)
PASS
ok  	_/var/tmp/docker-gen	0.585s

$ go test -v
=== RUN   TestGenerateFromEvents
--- PASS: TestGenerateFromEvents (0.58s)
PASS
ok  	_/var/tmp/docker-gen	0.585s

$ go test -v
=== RUN   TestGenerateFromEvents
--- FAIL: TestGenerateFromEvents (0.58s)
	generator_test.go:204: expected: 8dfafdbc3a40.6. got: 8dfafdbc3a40.7
	generator_test.go:204: expected: 8dfafdbc3a40.7. got: 8dfafdbc3a40.6
FAIL
exit status 1
FAIL	_/var/tmp/docker-gen	0.586s
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant