Skip to content

Commit

Permalink
test: fixes
Browse files Browse the repository at this point in the history
Signed-off-by: Carlos A Becker <caarlos0@gmail.com>
  • Loading branch information
caarlos0 committed Dec 28, 2021
1 parent 2bf7499 commit 303c70b
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 11 deletions.
2 changes: 1 addition & 1 deletion apk/apk_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ func TestCreateBuilderData(t *testing.T) {

require.NoError(t, builderData(tw))

require.Equal(t, 12288, buf.Len())
require.Equal(t, 11784, buf.Len())
}

func TestCombineToApk(t *testing.T) {
Expand Down
15 changes: 5 additions & 10 deletions rpm/rpm_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -817,16 +817,11 @@ func TestDirectories(t *testing.T) {
require.NoError(t, err)

require.Equal(t, []string{
"etc/",
"etc/bar/",
"etc/baz/",
"usr/",
"usr/lib/",
"usr/lib/something/",
"usr/lib/something/somethingelse/",
"etc/bar/file",
"etc/foo/",
"etc/foo/file",
"/etc/bar",
"/etc/bar/file",
"/etc/baz",
"/etc/foo/file",
"/usr/lib/something/somethingelse",
}, getTree(t, rpmFileBuffer.Bytes()))

// the directory /etc/foo should not be implicitly created as that
Expand Down

0 comments on commit 303c70b

Please sign in to comment.