mirror of
https://github.com/pgsty/minio.git
synced 2026-08-10 00:03:29 +03:00
remove the list from 'mc stat' from testing via '--no-list' (#20468)
avoid 'listing' as it may get incorrect results for these tests, we are only interested in 'mc stat' as in HEAD object here.
This commit is contained in:
@@ -62,7 +62,7 @@ while true; do
|
||||
fi
|
||||
echo "Hello World" | ./mc pipe sitea/bucket/obj$loop_count
|
||||
./mc rm sitea/bucket/obj$loop_count
|
||||
RESULT=$({ ./mc stat sitea/bucket/obj$loop_count; } 2>&1)
|
||||
RESULT=$({ ./mc stat --no-list sitea/bucket/obj$loop_count; } 2>&1)
|
||||
if [[ ${RESULT} != *"Object does not exist"* ]]; then
|
||||
echo "BUG: stat should fail. succeeded."
|
||||
exit_1
|
||||
|
||||
Reference in New Issue
Block a user