Skip to content

Commit 03931e2

Browse files
committed
check for non-empty file
1 parent 066bcf0 commit 03931e2

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

cli/support_test.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -114,6 +114,7 @@ func assertBundleContents(t *testing.T, path string) {
114114
require.NoError(t, err, "open zip file")
115115
defer r.Close()
116116
for _, f := range r.File {
117+
require.NotZero(t, f.UncompressedSize64, "file %q should not be empty", f.Name)
117118
switch f.Name {
118119
case "deployment/buildinfo.json":
119120
var v codersdk.BuildInfoResponse

0 commit comments

Comments
 (0)