Skip to content

Commit ab93a6c

Browse files
authored
remove unnecessary upload/download waiters in tests (#6992)
1 parent 7ec957c commit ab93a6c

File tree

1 file changed

+0
-20
lines changed

1 file changed

+0
-20
lines changed

test/object-store/sync/flx_sync.cpp

Lines changed: 0 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -1470,9 +1470,6 @@ TEST_CASE("flx: uploading an object that is out-of-view results in compensating
14701470
std::any(AnyDict{{"_id", invalid_obj}, {"queryable_str_field", "bizz"s}}));
14711471
realm->commit_transaction();
14721472

1473-
wait_for_upload(*realm);
1474-
wait_for_download(*realm);
1475-
14761473
validate_sync_error(
14771474
std::move(error_future).get(), invalid_obj, "TopLevel",
14781475
util::format("write to \"%1\" in table \"TopLevel\" not allowed", invalid_obj.to_string()));
@@ -1504,8 +1501,6 @@ TEST_CASE("flx: uploading an object that is out-of-view results in compensating
15041501
embedded_obj.set_property_value(c, "str_field", std::any{"baz"s});
15051502
realm->commit_transaction();
15061503

1507-
wait_for_upload(*realm);
1508-
wait_for_download(*realm);
15091504
validate_sync_error(
15101505
std::move(error_future).get(), invalid_obj, "TopLevel",
15111506
util::format("write to \"%1\" in table \"TopLevel\" not allowed", invalid_obj.to_string()));
@@ -1551,9 +1546,6 @@ TEST_CASE("flx: uploading an object that is out-of-view results in compensating
15511546
}));
15521547
realm->commit_transaction();
15531548

1554-
wait_for_upload(*realm);
1555-
wait_for_download(*realm);
1556-
15571549
validate_sync_error(std::move(error_future).get(), invalid_obj, "TopLevel",
15581550
"object is outside of the current query view");
15591551

@@ -1585,9 +1577,6 @@ TEST_CASE("flx: uploading an object that is out-of-view results in compensating
15851577
realm->read_group().get_table("class_Int PK")->create_object_with_primary_key(123456);
15861578
realm->commit_transaction();
15871579

1588-
wait_for_upload(*realm);
1589-
wait_for_download(*realm);
1590-
15911580
validate_sync_error(std::move(error_future).get(), 123456, "Int PK",
15921581
"write to \"123456\" in table \"Int PK\" not allowed");
15931582
}
@@ -1600,9 +1589,6 @@ TEST_CASE("flx: uploading an object that is out-of-view results in compensating
16001589
realm->read_group().get_table("class_String PK")->create_object_with_primary_key("short");
16011590
realm->commit_transaction();
16021591

1603-
wait_for_upload(*realm);
1604-
wait_for_download(*realm);
1605-
16061592
validate_sync_error(std::move(error_future).get(), "short", "String PK",
16071593
"write to \"short\" in table \"String PK\" not allowed");
16081594
}
@@ -1616,9 +1602,6 @@ TEST_CASE("flx: uploading an object that is out-of-view results in compensating
16161602
realm->read_group().get_table("class_String PK")->create_object_with_primary_key(pk);
16171603
realm->commit_transaction();
16181604

1619-
wait_for_upload(*realm);
1620-
wait_for_download(*realm);
1621-
16221605
validate_sync_error(std::move(error_future).get(), pk, "String PK",
16231606
util::format("write to \"%1\" in table \"String PK\" not allowed", pk));
16241607
}
@@ -1632,9 +1615,6 @@ TEST_CASE("flx: uploading an object that is out-of-view results in compensating
16321615
realm->read_group().get_table("class_UUID PK")->create_object_with_primary_key(pk);
16331616
realm->commit_transaction();
16341617

1635-
wait_for_upload(*realm);
1636-
wait_for_download(*realm);
1637-
16381618
validate_sync_error(std::move(error_future).get(), pk, "UUID PK",
16391619
util::format("write to \"UUID(%1)\" in table \"UUID PK\" not allowed", pk));
16401620
}

0 commit comments

Comments
 (0)