Skip to content

Commit

Permalink
Small corrections
Browse files Browse the repository at this point in the history
  • Loading branch information
papafe committed May 29, 2024
1 parent 9370545 commit 12b8ffe
Showing 1 changed file with 5 additions and 6 deletions.
11 changes: 5 additions & 6 deletions Tests/Realm.Tests/Sync/StaticQueriesTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -760,7 +760,8 @@ public void RealmObjectAPI_RealmValueLinks_AtlasToRealm(TestCaseData<RealmValueO
var realmValObj = realm.Find<RealmValueObject>(obj.Id)!;
await WaitForConditionAsync(() => {
await WaitForConditionAsync(() =>
{
return realmValObj.RealmValueProperty.Type == RealmValueType.Null ==
(obj.RealmValueProperty.Type == RealmValueType.Null);
});
Expand All @@ -780,8 +781,9 @@ await WaitForConditionAsync(() => {
foreach (var key in obj.RealmValueDictionary.Keys)
{
Assert.That(realmValObj.RealmValueDictionary.ContainsKey(key));
await WaitForConditionAsync(() => { return realmValObj.RealmValueDictionary[key].Type == RealmValueType.Null
== (obj.RealmValueDictionary[key].Type == RealmValueType.Null);
await WaitForConditionAsync(() =>
{
return realmValObj.RealmValueDictionary[key].Type == RealmValueType.Null == (obj.RealmValueDictionary[key].Type == RealmValueType.Null);
});
AssertEqual(realmValObj.RealmValueDictionary[key], obj.RealmValueDictionary[key]);
Expand Down Expand Up @@ -1275,9 +1277,6 @@ public void RealmObjectAPI_MissingField_GetsDefaultValueWhenDeserialized()
var collection = client.GetCollection<T>();
await collection.DeleteManyAsync(new object());

//var syncObjects = realm.All<T>();
//await syncObjects.WaitForEventAsync((sender, _) => sender.Count == 0);

return collection;
}

Expand Down

0 comments on commit 12b8ffe

Please sign in to comment.