diff --git a/syft/internal/fileresolver/unindexed_directory_test.go b/syft/internal/fileresolver/unindexed_directory_test.go index ec81e1e78763..55565f59fa57 100644 --- a/syft/internal/fileresolver/unindexed_directory_test.go +++ b/syft/internal/fileresolver/unindexed_directory_test.go @@ -1307,7 +1307,7 @@ func Test_UnindexedDirectoryResolver_RelativeFileByPath(t *testing.T) { name: "should find nested file from root", root: "./test-fixtures/image-simple", searchFile: "target/really/nested/file-3.txt", - expected: strset.New("file-3.txt"), + expected: strset.New("target/really/nested/file-3.txt"), }, } for _, c := range cases {