Skip to content

Commit 533f273

Browse files
author
Liubov Didkivska
authored
Fix VolatileLayerClientTest.GetPartitionsDifferentFetchOptions. (#712)
Add OnlineIfNotFound case for GetPartitionsDifferentFetchOptions test. Resolves: OLPEDGE-1709 Signed-off-by: Liubov Didkivska <[email protected]>
1 parent d251fca commit 533f273

File tree

1 file changed

+18
-0
lines changed

1 file changed

+18
-0
lines changed

tests/functional/olp-cpp-sdk-dataservice-read/DataserviceReadVolatileLayerClientTest.cpp

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -186,6 +186,24 @@ TEST_F(VolatileLayerClientTest, GetPartitionsDifferentFetchOptions) {
186186
ASSERT_TRUE(condition.Wait(kTimeout));
187187
EXPECT_TRUE(partitions_response.IsSuccessful());
188188
}
189+
{
190+
SCOPED_TRACE("Get Partitions Online if not found");
191+
192+
VolatileLayerClient client(hrn, GetTestLayer(), settings_);
193+
194+
olp::client::Condition condition;
195+
PartitionsResponse partitions_response;
196+
197+
auto callback = [&](PartitionsResponse response) {
198+
partitions_response = std::move(response);
199+
condition.Notify();
200+
};
201+
client.GetPartitions(
202+
PartitionsRequest().WithFetchOption(FetchOptions::OnlineIfNotFound),
203+
std::move(callback));
204+
ASSERT_TRUE(condition.Wait(kTimeout));
205+
EXPECT_TRUE(partitions_response.IsSuccessful());
206+
}
189207
{
190208
SCOPED_TRACE("Get Partitions Cache Only");
191209

0 commit comments

Comments
 (0)