Skip to content

Commit

Permalink
test(files): add test parallelism to the test packages
Browse files Browse the repository at this point in the history
  • Loading branch information
danvergara committed Jan 21, 2024
1 parent b73f6d1 commit 1a701a7
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
2 changes: 2 additions & 0 deletions pkg/files/documents/documents_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -118,6 +118,8 @@ func TestPDFToImages(t *testing.T) {
for _, tc := range tests {
tc := tc
t.Run(tc.name, func(t *testing.T) {
t.Parallel()

inputDoc, err := os.ReadFile(tc.input.filename)
require.NoError(t, err)

Expand Down
4 changes: 4 additions & 0 deletions pkg/files/images/images_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -222,6 +222,8 @@ func TestConvertImage(t *testing.T) {
for _, tc := range tests {
tc := tc
t.Run(tc.name, func(t *testing.T) {
t.Parallel()

inputImg, err := os.ReadFile(tc.input.filename)
require.NoError(t, err)

Expand Down Expand Up @@ -396,6 +398,8 @@ func TestConvertImageToDocument(t *testing.T) {
for _, tc := range tests {
tc := tc
t.Run(tc.name, func(t *testing.T) {
t.Parallel()

inputImg, err := os.ReadFile(tc.input.filename)
require.NoError(t, err)

Expand Down

0 comments on commit 1a701a7

Please sign in to comment.