-
Notifications
You must be signed in to change notification settings - Fork 23
Conversation
Thank you for submitting this PR!
Getting other community members to do a review would be great help too on complex PRs (you can ask in the chats/forums). If you are unsure about something, just leave us a comment.
We currently aim to provide initial feedback/triaging within two business days. Please keep an eye on any labelling actions, as these will indicate priorities and status of your contribution. |
0b3118a
to
a885508
Compare
Fix test failure caused by `panic` when checking if a file is hidden in Windows. The hidden check uses `FileInfo.Sys()`. In tests the object is a mock and that call returns `nil`. Regardless of mocking, we should check for `nil` since according to docs that function can return `nil`. Run `go mod tidy`. Relates to: - #34
#39 should fix the panic in Windows tests. |
a885508
to
7e0b6b0
Compare
Otherwise, this function call panics on windows.
Use OS specific path separators in tests
Fix test failure caused by `panic` when checking if a file is hidden in Windows. The hidden check uses `FileInfo.Sys()`. In tests the object is a mock and that call returns `nil`. Regardless of mocking, we should check for `nil` since according to docs that function can return `nil`. Run `go mod tidy`. Relates to: - ipfs/go-ipfs-files#34 This commit was moved from ipfs/go-ipfs-files@8246860
sync: update CI config files This commit was moved from ipfs/go-ipfs-files@dffbf27
Syncing to commit protocol/.github@5f1e050.