File tree Expand file tree Collapse file tree 1 file changed +0
-6
lines changed
cpp/example_code/transfer-manager Expand file tree Collapse file tree 1 file changed +0
-6
lines changed Original file line number Diff line number Diff line change @@ -98,9 +98,6 @@ int main(int argc, char** argv)
9898 {
9999 std::cout << " File upload finished." << std::endl;
100100
101- // Verify that the upload retrieved the expected amount of data.
102- assert (uploadHandle->GetBytesTotalSize () == uploadHandle->GetBytesTransferred ());
103-
104101 auto downloadHandle = transfer_manager->DownloadFile (BUCKET,
105102 KEY,
106103 [&]() { // Define a lambda expression for the callback method parameter to stream back the data.
@@ -120,9 +117,6 @@ int main(int argc, char** argv)
120117 // Verify the download retrieved the expected length of data.
121118 assert (downloadHandle->GetBytesTotalSize () == downloadHandle->GetBytesTransferred ());
122119
123- // Verify that the length of the upload equals the download.
124- assert (uploadHandle->GetBytesTotalSize () == downloadHandle->GetBytesTotalSize ());
125-
126120 // Write the buffered data to local file copy.
127121 Aws::OFStream storeFile (LOCAL_FILE_COPY.c_str (), Aws::OFStream::out | Aws::OFStream::trunc);
128122 storeFile.write ((const char *)(buffer.GetUnderlyingData ()),
You can’t perform that action at this time.
0 commit comments