-
Notifications
You must be signed in to change notification settings - Fork 881
chore(coderd): improve tests for tar<->zip conversion #12477
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
Conversation
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.
Just minor nits, nice thorough tests!
func TestCreateTarFromZip(t *testing.T) { | ||
t.Parallel() | ||
if runtime.GOOS != "linux" { | ||
t.Skip("skipping this test on non-Linux platform") |
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.
Windows is no bueno?
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.
Generally yes, but I'm not going to assume the presence of tar
and unzip
on Windows for this test :-)
…to tar (#12476) * fix(coderd): set mode and modtime correctly when converting from zip->tar
* improve tests for tar<->zip conversion * set mode and modtime correctly when converting from zip to tar (#12476)
STACK:
#12477 <-- you are here
#12476
#12475
#12479
coderd/testdata
NOTE: these tests will fail until #12476 is merged in