Skip to content

Commit

Permalink
test(compute/package): update expected package name
Browse files Browse the repository at this point in the history
  • Loading branch information
Integralist committed Nov 9, 2023
1 parent 4e1741e commit 7caf5e7
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion pkg/commands/compute/pack.go
Original file line number Diff line number Diff line change
Expand Up @@ -157,7 +157,7 @@ func (c *PackCommand) Exec(_ io.Reader, out io.Writer) (err error) {
return err
}

return spinner.Process("Creating package.tar.gz file", func(_ *text.SpinnerWrapper) error {
return spinner.Process(fmt.Sprintf("Creating %s.tar.gz file", filename), func(_ *text.SpinnerWrapper) error {
tar := archiver.NewTarGz()
tar.OverwriteExisting = true
{
Expand Down
4 changes: 2 additions & 2 deletions pkg/commands/compute/pack_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -30,10 +30,10 @@ func TestPack(t *testing.T) {
wantOutput: []string{
"Copying wasm binary",
"Copying manifest",
"Creating package.tar.gz file",
"Creating mypackagename.tar.gz file",
},
expectedFiles: [][]string{
{"pkg", "package.tar.gz"},
{"pkg", "mypackagename.tar.gz"},
},
},
{
Expand Down

0 comments on commit 7caf5e7

Please sign in to comment.