-
-
Notifications
You must be signed in to change notification settings - Fork 109
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(fsx): recursive merging edge cases #709
Conversation
fsx/merge_test.go
Outdated
assert.Error(t, fstest.TestFS( | ||
mergefs.Merge(a, b), | ||
"a", | ||
"b", | ||
"dir", | ||
"dir/c", | ||
"dir/d", | ||
)) | ||
|
||
assert.NoError(t, fstest.TestFS(m, "a", "b", "dir", "dir/c", "dir/d")) | ||
assert.Error(t, fstest.TestFS( | ||
mergefs.Merge(mergefs.Merge(a, b), x), | ||
"a", | ||
"b", | ||
"dir", | ||
"dir/c", | ||
"dir/d", | ||
"dir/y", | ||
"x", | ||
)) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It took me way too long to see that this was not our code, but the other lib 🤦
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
And it took me way too long to see you changed assert.NoError
to assert.Error
while I was trying to understand how you magically made the tests pass for laher/mergefs
also 🤦
Thank you! Added more test cases. |
No description provided.