File tree Expand file tree Collapse file tree 1 file changed +8
-5
lines changed
sdk/storage/azure-storage-files-datalake/test/ut Expand file tree Collapse file tree 1 file changed +8
-5
lines changed Original file line number Diff line number Diff line change @@ -894,10 +894,13 @@ namespace Azure { namespace Storage { namespace Test {
894894 " Wed, 29 Sep 2100 09:53:03 GMT" , Azure::DateTime::DateFormat::Rfc1123);
895895 EXPECT_NO_THROW (fileClient.ScheduleDeletion (
896896 Files::DataLake::ScheduleFileExpiryOriginType::Absolute, options));
897-
898- auto pagedResult = m_directoryClient->ListPaths (true );
899- EXPECT_EQ (1L , pagedResult.Paths .size ());
900- ASSERT_TRUE (pagedResult.Paths [0 ].ExpiresOn .HasValue ());
901- EXPECT_EQ (options.ExpiresOn .Value (), pagedResult.Paths [0 ].ExpiresOn .Value ());
897+ std::vector<Files::DataLake::Models::PathItem> paths;
898+ for (auto page = m_directoryClient->ListPaths (true ); page.HasPage (); page.MoveToNextPage ())
899+ {
900+ paths.insert (paths.end (), page.Paths .begin (), page.Paths .end ());
901+ }
902+ EXPECT_EQ (1L , paths.size ());
903+ ASSERT_TRUE (paths[0 ].ExpiresOn .HasValue ());
904+ EXPECT_EQ (options.ExpiresOn .Value (), paths[0 ].ExpiresOn .Value ());
902905 }
903906}}} // namespace Azure::Storage::Test
You can’t perform that action at this time.
0 commit comments