From e7c130da86d238910c3c6b99bc5e677ff517dce1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=2EBurak=20Ya=C5=9Far?= <91782773+4o4x@users.noreply.github.com> Date: Tue, 16 Jul 2024 20:12:53 +0300 Subject: [PATCH] refactor: update regex in head_test.go for expected output The regex in the expected output of the head_test.go file has been updated to account for different orderings of key-value pairs in the metadata. This change ensures that the test passes regardless of the order in which the key-value pairs are printed. --- e2e/head_test.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/e2e/head_test.go b/e2e/head_test.go index a4613d092..38ea8ff1e 100644 --- a/e2e/head_test.go +++ b/e2e/head_test.go @@ -513,7 +513,7 @@ func TestHeadObjectWithMetadata(t *testing.T) { result.Assert(t, icmd.Success) - expectedOutput := `(?:STANDARD|)\s+\d+\s+file.txt+\s+Metadata: key1=value1,key2=value2` + expectedOutput := `(?:STANDARD|)\s+\d+\s+file.txt\s+Metadata: (?:key1=value1,key2=value2|key2=value2,key1=value1)` assertLines(t, result.Stdout(), map[int]compareFunc{ 0: match(expectedOutput),