diff --git a/tests/pressure-vessel/meson.build b/tests/pressure-vessel/meson.build
index 9fb290ce73bf461cc0cdcd7b8b0beb715f09bc5a..68f377973ff854ca537195e8b6ca16336a56004f 100644
--- a/tests/pressure-vessel/meson.build
+++ b/tests/pressure-vessel/meson.build
@@ -95,11 +95,11 @@ foreach test_name : tests
     test_args += ['-e', python.path()]
   endif
 
-  if test_name.endswith('launcher.py')
+  if test_name in ['test-locale-gen.sh', 'launcher.py']
     timeout = 60
   endif
 
-  if test_name.endswith('containers.py')
+  if test_name in ['containers.py']
     timeout = 300
   endif