File tree 1 file changed +0
-6
lines changed
cpp/example_code/transfer-manager
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)
98
98
{
99
99
std::cout << " File upload finished." << std::endl;
100
100
101
- // Verify that the upload retrieved the expected amount of data.
102
- assert (uploadHandle->GetBytesTotalSize () == uploadHandle->GetBytesTransferred ());
103
-
104
101
auto downloadHandle = transfer_manager->DownloadFile (BUCKET,
105
102
KEY,
106
103
[&]() { // Define a lambda expression for the callback method parameter to stream back the data.
@@ -120,9 +117,6 @@ int main(int argc, char** argv)
120
117
// Verify the download retrieved the expected length of data.
121
118
assert (downloadHandle->GetBytesTotalSize () == downloadHandle->GetBytesTransferred ());
122
119
123
- // Verify that the length of the upload equals the download.
124
- assert (uploadHandle->GetBytesTotalSize () == downloadHandle->GetBytesTotalSize ());
125
-
126
120
// Write the buffered data to local file copy.
127
121
Aws::OFStream storeFile (LOCAL_FILE_COPY.c_str (), Aws::OFStream::out | Aws::OFStream::trunc );
128
122
storeFile.write ((const char *)(buffer.GetUnderlyingData ()),
You can’t perform that action at this time.
0 commit comments