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

TestLsFiles failing on Mac #35

Open
sirnewton01 opened this issue Jul 11, 2018 · 3 comments
Open

TestLsFiles failing on Mac #35

sirnewton01 opened this issue Jul 11, 2018 · 3 comments

Comments

@sirnewton01
Copy link
Collaborator

When running with Go 1.10 on Mac OS X 10.13 (High Sierra) this test is failing consistently.

=== RUN   TestLsFiles
--- FAIL: TestLsFiles (0.00s)
	lsfiles_test.go:139: Case 2: Unexpected number of results: got [] want [anothertest/bar foo test/bar]
	lsfiles_test.go:139: Case 3: Unexpected number of results: got [] want [bar]
	lsfiles_test.go:139: Case 4: Unexpected number of results: got [] want [../anothertest/bar ../foo bar]
	lsfiles_test.go:148: Case 5 index 0: got ../../../../../../../../var/folders/sr/34ggszv967x3_b1gsdw2hsx80000gp/T/gitupdateindextest385424607/anothertest/bar want ../anothertest/bar
	lsfiles_test.go:148: Case 5 index 1: got ../../../../../../../../var/folders/sr/34ggszv967x3_b1gsdw2hsx80000gp/T/gitupdateindextest385424607/foo want ../foo
	lsfiles_test.go:148: Case 5 index 2: got ../../../../../../../../var/folders/sr/34ggszv967x3_b1gsdw2hsx80000gp/T/gitupdateindextest385424607/test/bar want bar
	lsfiles_test.go:139: Case 6: Unexpected number of results: got [] want [anothertest/bar]
@driusan
Copy link
Owner

driusan commented Jul 15, 2018

I can't look into this much since I don't have a Mac for go development, but my gut feeling tells me it's related to /tmp being a symlink to a weird location on Macs based on the case 5 failures.

@sirnewton01
Copy link
Collaborator Author

I'm thinking of closing this. It's a weird Mac edge case. It doesn't impact me really anymore since we have the Travis integration. It's probably because of the weird /tmp situation on Mac and the way the test works. In reality, this is pretty unlikely to be a problem on Mac in practice and it is not a primary platform for dgit.

@driusan
Copy link
Owner

driusan commented Feb 28, 2019

If they're still failing, I think we should keep the ticket open.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants