Skip to content

Commit

Permalink
refactor: update regex in head_test.go for expected output
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
4o4x committed Jul 16, 2024
1 parent 2d917d9 commit e7c130d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion e2e/head_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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),
Expand Down

0 comments on commit e7c130d

Please sign in to comment.