From ce6b9cc7bec3e842d79a6fb925e5ee1121903720 Mon Sep 17 00:00:00 2001 From: Integralist Date: Sun, 1 Oct 2023 11:36:13 +0100 Subject: [PATCH] test(compute/package): update expected package name --- pkg/commands/compute/pack.go | 2 +- pkg/commands/compute/pack_test.go | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/pkg/commands/compute/pack.go b/pkg/commands/compute/pack.go index 09d2ba96f..4d316574f 100644 --- a/pkg/commands/compute/pack.go +++ b/pkg/commands/compute/pack.go @@ -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 { diff --git a/pkg/commands/compute/pack_test.go b/pkg/commands/compute/pack_test.go index 9f089cbf2..7f18e3200 100644 --- a/pkg/commands/compute/pack_test.go +++ b/pkg/commands/compute/pack_test.go @@ -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"}, }, }, {