diff --git a/cmd/server/tests/worker_test.go b/cmd/server/tests/worker_test.go index 6dc6642..3aa30c7 100644 --- a/cmd/server/tests/worker_test.go +++ b/cmd/server/tests/worker_test.go @@ -219,6 +219,13 @@ func TestWorker_ConcurrentJobs(t *testing.T) { FolderPath: tmpDir, }) require.NoError(t, err) + + // Create test files in each directory + for j := 0; j < 2; j++ { + filePath := filepath.Join(tmpDir, fmt.Sprintf("book%d.epub", j)) + err = os.WriteFile(filePath, []byte(fmt.Sprintf("test content %d", j)), 0644) + require.NoError(t, err, "Failed to create test file") + } } // Submit multiple concurrent jobs