Better tests

This commit is contained in:
Alexey Milovidov 2024-07-25 21:47:41 +02:00
parent a7441669aa
commit ba5a07bcc7
2 changed files with 2 additions and 2 deletions

View File

@ -1,2 +1,2 @@
Memory limit (for query) exceeded Memory limit exceeded
Ok Ok

View File

@ -16,5 +16,5 @@ for _ in {1..1000}; do
if [[ $elapsed -gt 30 ]]; then if [[ $elapsed -gt 30 ]]; then
break break
fi fi
done 2>&1 | grep -o -F 'Memory limit (for query) exceeded' | uniq done 2>&1 | grep -o -P 'Memory limit .+ exceeded' | sed -r -e 's/(Memory limit)(.+)( exceeded)/\1\3/' | uniq
echo 'Ok' echo 'Ok'