diff --git a/tests/automatic/producer/aai/check_linux.sh b/tests/automatic/producer/aai/check_linux.sh
index 6a40b0b091ef7f83d551ef71efa63d19dcd41771..fc7df86401c04972baa03c6f8ba67905f14c8f3e 100644
--- a/tests/automatic/producer/aai/check_linux.sh
+++ b/tests/automatic/producer/aai/check_linux.sh
@@ -45,6 +45,6 @@ echo test > file1
 $1 $3 $beamline $token $stream "127.0.0.1:8400" > out || cat out
 cat out
 cat out | grep "successfuly sent" | wc -l | grep 3
-cat out | grep "reauthorization" | wc -l | grep 1
+cat out | grep "reauthorization\|Broken" | wc -l | grep 1
 cat out | grep "duplicated" | wc -l | grep 2