From fb80a66f7bdf0e167b6b32a5d9719cf3355d641c Mon Sep 17 00:00:00 2001 From: Itxaka Date: Tue, 24 Sep 2024 10:04:37 +0200 Subject: [PATCH] Alos fix tests, of course Signed-off-by: Itxaka --- pkg/elemental/elemental_test.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkg/elemental/elemental_test.go b/pkg/elemental/elemental_test.go index 78fb5724..dc764851 100644 --- a/pkg/elemental/elemental_test.go +++ b/pkg/elemental/elemental_test.go @@ -398,7 +398,7 @@ var _ = Describe("Elemental", Label("elemental"), func() { // Should be efi type Expect(partition.Type).To(Equal(gpt.EFISystemPartition)) // should have boot label - Expect(partition.Name).To(Equal(cnst.EfiLabel)) + Expect(partition.Name).To(Equal(cnst.EfiPartName)) // Should have predictable UUID Expect(strings.ToLower(partition.UUID())).To(Equal(strings.ToLower(uuid.NewV5(uuid.NamespaceURL, cnst.EfiLabel).String()))) // Check the rest have the proper types @@ -431,7 +431,7 @@ var _ = Describe("Elemental", Label("elemental"), func() { // Should be BIOS boot type Expect(partition.Type).To(Equal(gpt.BIOSBoot)) // should have boot label - Expect(partition.Name).To(Equal(cnst.EfiLabel)) + Expect(partition.Name).To(Equal(cnst.BiosPartName)) // Should have predictable UUID Expect(strings.ToLower(partition.UUID())).To(Equal(strings.ToLower(uuid.NewV5(uuid.NamespaceURL, cnst.EfiLabel).String()))) for i := 1; i < len(disk.Table.GetPartitions()); i++ {