diff --git a/sdk/storage/azure-storage-blobs/test/blob_container_client_test.cpp b/sdk/storage/azure-storage-blobs/test/blob_container_client_test.cpp index 0b1f2de88..3d29b24aa 100644 --- a/sdk/storage/azure-storage-blobs/test/blob_container_client_test.cpp +++ b/sdk/storage/azure-storage-blobs/test/blob_container_client_test.cpp @@ -208,7 +208,7 @@ namespace Azure { namespace Storage { namespace Test { } listBlobs.insert(blob.Name); } - } while (!options.ContinuationToken.GetValue().empty()); + } while (options.ContinuationToken.HasValue()); EXPECT_TRUE( std::includes(listBlobs.begin(), listBlobs.end(), p1p2Blobs.begin(), p1p2Blobs.end())); @@ -222,7 +222,7 @@ namespace Azure { namespace Storage { namespace Test { { listBlobs.insert(blob.Name); } - } while (!options.ContinuationToken.GetValue().empty()); + } while (options.ContinuationToken.HasValue()); EXPECT_TRUE(std::includes(listBlobs.begin(), listBlobs.end(), p1Blobs.begin(), p1Blobs.end())); } @@ -356,7 +356,7 @@ namespace Azure { namespace Storage { namespace Test { foundMetadata = true; } } - } while (!options.ContinuationToken.GetValue().empty()); + } while (options.ContinuationToken.HasValue()); EXPECT_TRUE(foundSnapshot); EXPECT_TRUE(foundVersions); EXPECT_TRUE(foundCurrentVersion); @@ -717,7 +717,7 @@ namespace Azure { namespace Storage { namespace Test { break; } } - } while (!options.ContinuationToken.GetValue().empty()); + } while (options.ContinuationToken.HasValue()); } EXPECT_EQ(deletedContainerItem.Name, containerName); EXPECT_TRUE(deletedContainerItem.IsDeleted); diff --git a/sdk/storage/azure-storage-blobs/test/blob_service_client_test.cpp b/sdk/storage/azure-storage-blobs/test/blob_service_client_test.cpp index 928b32ea8..03377d587 100644 --- a/sdk/storage/azure-storage-blobs/test/blob_service_client_test.cpp +++ b/sdk/storage/azure-storage-blobs/test/blob_service_client_test.cpp @@ -122,7 +122,7 @@ namespace Azure { namespace Storage { namespace Test { { listContainers.insert(container.Name); } - } while (!options.ContinuationToken.GetValue().empty()); + } while (options.ContinuationToken.HasValue()); EXPECT_TRUE(std::includes( listContainers.begin(), listContainers.end(), @@ -153,7 +153,7 @@ namespace Azure { namespace Storage { namespace Test { EXPECT_FALSE(container.PreventEncryptionScopeOverride); listContainers.insert(container.Name); } - } while (!options.ContinuationToken.GetValue().empty()); + } while (options.ContinuationToken.HasValue()); EXPECT_TRUE(std::includes( listContainers.begin(), listContainers.end(), p1Containers.begin(), p1Containers.end()));