diff --git a/workflow/tests/test_alignReads.py b/workflow/tests/test_alignReads.py
index fb5316c0469d1a99410e20b8befc7bf447de0b74..4f7bc79e41644547470936227289e432a837ef94 100644
--- a/workflow/tests/test_alignReads.py
+++ b/workflow/tests/test_alignReads.py
@@ -20,4 +20,4 @@ def test_alignData_se():
 def test_alignData_pe():
 	assert os.path.exists(os.path.join(data_output_path, 'Q-Y5JA_1M.pe.unal.gz'))
 	assert os.path.exists(os.path.join(data_output_path, 'Q-Y5JA_1M.pe.sorted.bam'))
-	assert os.path.exists(os.path.join(data_output_path, 'Q-Y5JA_1M.pe.bam.sorted.bai'))
+	assert os.path.exists(os.path.join(data_output_path, 'Q-Y5JA_1M.pe.sorted.bai'))