Skip to content

Commit 1e9be2b

Browse files
committed
resolve conflicts
1 parent 248b67a commit 1e9be2b

File tree

1 file changed

+0
-27
lines changed

1 file changed

+0
-27
lines changed

internal/pkg/agent/application/upgrade/step_unpack_test.go

Lines changed: 0 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -756,32 +756,6 @@ func addEntryToZipArchive(af files, writer *zip.Writer) error {
756756

757757
return nil
758758
}
759-
<<<<<<< HEAD
760-
=======
761-
762-
func TestGetFileNamePrefix(t *testing.T) {
763-
tests := map[string]struct {
764-
archivePath string
765-
expectedPrefix string
766-
}{
767-
"fips": {
768-
archivePath: "/foo/bar/elastic-agent-fips-9.1.0-SNAPSHOT-linux-arm64.tar.gz",
769-
expectedPrefix: "elastic-agent-9.1.0-SNAPSHOT-linux-arm64/",
770-
},
771-
"no_fips": {
772-
archivePath: "/foo/bar/elastic-agent-9.1.0-SNAPSHOT-linux-arm64.tar.gz",
773-
expectedPrefix: "elastic-agent-9.1.0-SNAPSHOT-linux-arm64/",
774-
},
775-
}
776-
777-
for name, test := range tests {
778-
t.Run(name, func(t *testing.T) {
779-
prefix := getFileNamePrefix(test.archivePath)
780-
require.Equal(t, test.expectedPrefix, prefix)
781-
})
782-
}
783-
784-
}
785759

786760
func TestUnpack(t *testing.T) {
787761
log, _ := loggertest.New("TestUnpack")
@@ -828,4 +802,3 @@ func TestUnpack(t *testing.T) {
828802
})
829803
}
830804
}
831-
>>>>>>> f70ff023f (Enhancement/5235 handle insufficient disk space errors in artifact unpack (#9322))

0 commit comments

Comments
 (0)