@@ -1547,11 +1547,14 @@ public async Task DownloadTo_Initial304()
15471547 // Upload a blob
15481548 var data = GetRandomBuffer ( Constants . KB ) ;
15491549 BlobClient blob = InstrumentClient ( test . Container . GetBlobClient ( GetNewBlobName ( ) ) ) ;
1550+ Response < BlobContentInfo > uploadResponse ;
15501551 using ( var stream = new MemoryStream ( data ) )
15511552 {
1552- await blob . UploadAsync ( stream ) ;
1553+ uploadResponse = await blob . UploadAsync ( stream ) ;
15531554 }
15541555
1556+ CheckModifiedSinceAndWait ( uploadResponse ) ;
1557+
15551558 // Add conditions to cause a failure and ensure we don't explode
15561559 Response result = await blob . DownloadToAsync (
15571560 Stream . Null ,
@@ -1571,11 +1574,14 @@ public async Task DownloadContent_Initial304()
15711574 // Upload a blob
15721575 var data = GetRandomBuffer ( Constants . KB ) ;
15731576 BlobClient blob = InstrumentClient ( test . Container . GetBlobClient ( GetNewBlobName ( ) ) ) ;
1577+ Response < BlobContentInfo > uploadResponse ;
15741578 using ( var stream = new MemoryStream ( data ) )
15751579 {
1576- await blob . UploadAsync ( stream ) ;
1580+ uploadResponse = await blob . UploadAsync ( stream ) ;
15771581 }
15781582
1583+ CheckModifiedSinceAndWait ( uploadResponse ) ;
1584+
15791585 // Add conditions to cause a failure and ensure we don't explode
15801586 Response < BlobDownloadResult > result = await blob . DownloadContentAsync ( new BlobDownloadOptions
15811587 {
@@ -1596,11 +1602,14 @@ public async Task DownloadStreaming_Initial304()
15961602 // Upload a blob
15971603 var data = GetRandomBuffer ( Constants . KB ) ;
15981604 BlobClient blob = InstrumentClient ( test . Container . GetBlobClient ( GetNewBlobName ( ) ) ) ;
1605+ Response < BlobContentInfo > uploadResponse ;
15991606 using ( var stream = new MemoryStream ( data ) )
16001607 {
1601- await blob . UploadAsync ( stream ) ;
1608+ uploadResponse = await blob . UploadAsync ( stream ) ;
16021609 }
16031610
1611+ CheckModifiedSinceAndWait ( uploadResponse ) ;
1612+
16041613 // Add conditions to cause a failure and ensure we don't explode
16051614 Response < BlobDownloadStreamingResult > result = await blob . DownloadStreamingAsync ( new BlobDownloadOptions
16061615 {
@@ -1621,11 +1630,14 @@ public async Task Download_Initial304()
16211630 // Upload a blob
16221631 var data = GetRandomBuffer ( Constants . KB ) ;
16231632 BlobClient blob = InstrumentClient ( test . Container . GetBlobClient ( GetNewBlobName ( ) ) ) ;
1633+ Response < BlobContentInfo > uploadResponse ;
16241634 using ( var stream = new MemoryStream ( data ) )
16251635 {
1626- await blob . UploadAsync ( stream ) ;
1636+ uploadResponse = await blob . UploadAsync ( stream ) ;
16271637 }
16281638
1639+ CheckModifiedSinceAndWait ( uploadResponse ) ;
1640+
16291641 // Add conditions to cause a failure and ensure we don't explode
16301642 Response < BlobDownloadInfo > result = await blob . DownloadAsync (
16311643 conditions : new BlobRequestConditions
0 commit comments