Modify test.sh, to wait long enough for upload to be completed