Skip to content

Commit 077ef19

Browse files
authored
Cpp: Remove broken assert (#7285)
1 parent ba9ee21 commit 077ef19

File tree

1 file changed

+0
-6
lines changed

1 file changed

+0
-6
lines changed

cpp/example_code/transfer-manager/transferOnStream.cpp

-6
Original file line numberDiff line numberDiff 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()),

0 commit comments

Comments
 (0)