Skip to content

Commit

Permalink
Wait for object to upload properly
Browse files Browse the repository at this point in the history
Sometimes while mint tests, removal of object immediately after
upload command fails with object not found. As the object may not
be uploaded and reflected yet to the cluster, this can fail. Added
a small sleep after upload to make sure object is available before
any remove call.

Signed-off-by: Shubhendu Ram Tripathi <[email protected]>
  • Loading branch information
shtripat committed May 28, 2024
1 parent a8fdcbe commit e3f3b1c
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions functional-tests.sh
Original file line number Diff line number Diff line change
Expand Up @@ -1028,6 +1028,7 @@ function test_bucket_replication() {
break
fi
assert_success "$start_time" "${FUNCNAME[0]}" mc_cmd cp "$FILE_0_B" "${SERVER_ALIAS}/${bkt1}/${object_name}"
sleep 5s # to make sure objects reflects
assert_success "$start_time" "${FUNCNAME[0]}" mc_cmd rm "${SERVER_ALIAS}/${bkt1}/${object_name}"
assert_failure "$start_time" "${FUNCNAME[0]}" mc_cmd stat "${SERVER_ALIAS}/${bkt1}/${object_name}"
loop_count=$((loop_count + 1))
Expand Down

0 comments on commit e3f3b1c

Please sign in to comment.