Skip to content

Commit

Permalink
test: improve test robust
Browse files Browse the repository at this point in the history
  • Loading branch information
soulteary committed Dec 23, 2024
1 parent 94107c7 commit 8d5e783
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion internal/fn/fn_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -496,7 +496,8 @@ func TestGetPathContent(t *testing.T) {
t.Errorf("GetPathContent failed for directory: %v", err)
}
expectedContent := append(content1, content2...)
if !reflect.DeepEqual(content, expectedContent) {
expectedContent2 := append(content1, content2...)
if !reflect.DeepEqual(content, expectedContent) || !reflect.DeepEqual(content, expectedContent2) {
t.Errorf("Expected %s, got %s", expectedContent, content)
}

Expand Down

0 comments on commit 8d5e783

Please sign in to comment.