Skip to content

Commit bc73769

Browse files
committed
Update UIHandlerAutomated.cs
1 parent 194e042 commit bc73769

File tree

1 file changed

+12
-10
lines changed

1 file changed

+12
-10
lines changed

firestore/testapp/Assets/Firebase/Sample/Firestore/UIHandlerAutomated.cs

Lines changed: 12 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ protected override void Start() {
8282
// non-static.
8383
Func<Task>[] tests = {
8484
// clang-format off
85-
TestDeleteDocument,
85+
/*TestDeleteDocument,
8686
TestWriteDocument,
8787
TestWriteDocumentViaCollection,
8888
TestWriteDocumentWithIntegers,
@@ -119,9 +119,13 @@ protected override void Start() {
119119
TestDocumentListenWithMetadataChanges,
120120
TestQueryListen,
121121
TestQueryListenWithMetadataChanges,
122-
TestQuerySnapshotChanges,
122+
TestQuerySnapshotChanges,*/
123123
TestQueries,
124-
TestLimitToLast,
124+
TestQueries,
125+
TestQueries,
126+
TestQueries,
127+
TestQueries,
128+
/*TestLimitToLast,
125129
TestArrayContains,
126130
TestArrayContainsAny,
127131
TestInQueries,
@@ -156,7 +160,7 @@ protected override void Start() {
156160
TestFirestoreDispose,
157161
TestFirestoreGetInstance,
158162
TestWhereFilterQueries,
159-
TestAndOrQueriesNoCompositeIndexes
163+
TestAndOrQueriesNoCompositeIndexes*/
160164
// clang-format on
161165
};
162166

@@ -4680,18 +4684,16 @@ private void AssertQueryResults(string desc, Query query, List<string> docIds) {
46804684
private void AssertQueryResults(string desc, Query query, List<string> docIds, long count) {
46814685
var snapshot = Await(query.GetSnapshotAsync());
46824686

4683-
if (docIds.Count != count) {
4684-
UnityEngine.Debug.Log("=-=-= WTF!!!");
4685-
}
4687+
string s = "";
46864688

46874689
if (snapshot.Count != docIds.Count) {
4688-
UnityEngine.Debug.Log("===== Got a snapshot for " + desc + ". Count: " + snapshot.Count + " expected: " + count);
4690+
s += "Got a snapshot for " + desc + ". Count: " + snapshot.Count + " expected: " + count;
46894691
for (int i = 0; i < snapshot.Count; i++) {
4690-
UnityEngine.Debug.Log("===== snapshot[" + i + "]: " + snapshot[i].Id);
4692+
s += " snapshot[" + i + "]: " + snapshot[i].Id;
46914693
}
46924694
}
46934695

4694-
AssertEq(desc + ": Query result count", snapshot.Count, docIds.Count);
4696+
AssertEq(desc + ": Query result count " + s, snapshot.Count, docIds.Count);
46954697
for (int i = 0; i < snapshot.Count; i++) {
46964698
AssertEq(desc + ": Document ID " + i, docIds[i], snapshot[i].Id);
46974699
}

0 commit comments

Comments
 (0)