diff --git a/lustre/tests/sanity.sh b/lustre/tests/sanity.sh
index f3ba16db9d421c0446b5e81f84c376798cf393a6..1eaf15c13a65af4b49e2e6175c0936b958b0f864 100644
--- a/lustre/tests/sanity.sh
+++ b/lustre/tests/sanity.sh
@@ -5823,7 +5823,7 @@ test_151() {
         cancel_lru_locks osc
 	cat $DIR/$tfile >/dev/null
 	AFTER=`roc_hit`
-	if ! let "AFTER - BEFORE == CPAGES"; then
+	if let "AFTER - BEFORE != 0"; then
 		error "IN CACHE: before: $BEFORE, after: $AFTER"
 	fi