Skip to content

Commit 8ca3f2f

Browse files
1 parent 77e84c6 commit 8ca3f2f

1 file changed

Lines changed: 8 additions & 16 deletions

File tree

‎handwritten/firestore/dev/system-test/tracing.ts‎

Lines changed: 8 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -770,9 +770,7 @@ describe.skipEnterprise('Tracing Tests', () => {
770770

771771
function runTestCases() {
772772
it('document reference get()', async () => {
773-
await runFirestoreOperationInRootSpan(() =>
774-
randomCol.doc('bar').get(),
775-
);
773+
await runFirestoreOperationInRootSpan(() => randomCol.doc('bar').get());
776774
await waitForCompletedSpans(3);
777775
expectSpanHierarchy(
778776
SPAN_NAME_TEST_ROOT,
@@ -791,9 +789,7 @@ describe.skipEnterprise('Tracing Tests', () => {
791789
});
792790

793791
it('document reference create()', async () => {
794-
await runFirestoreOperationInRootSpan(() =>
795-
randomCol.doc().create({}),
796-
);
792+
await runFirestoreOperationInRootSpan(() => randomCol.doc().create({}));
797793
await waitForCompletedSpans(3);
798794
expectSpanHierarchy(
799795
SPAN_NAME_TEST_ROOT,
@@ -874,9 +870,7 @@ describe.skipEnterprise('Tracing Tests', () => {
874870
});
875871

876872
it('aggregate query get()', async () => {
877-
await runFirestoreOperationInRootSpan(() =>
878-
randomCol.count().get(),
879-
);
873+
await runFirestoreOperationInRootSpan(() => randomCol.count().get());
880874
await waitForCompletedSpans(2);
881875
expectSpanHierarchy(SPAN_NAME_TEST_ROOT, SPAN_NAME_AGGREGATION_QUERY_GET);
882876
expectSpanHasEvents(SPAN_NAME_AGGREGATION_QUERY_GET, [
@@ -887,9 +881,7 @@ describe.skipEnterprise('Tracing Tests', () => {
887881
});
888882

889883
it('collection reference add()', async () => {
890-
await runFirestoreOperationInRootSpan(() =>
891-
randomCol.add({foo: 'bar'}),
892-
);
884+
await runFirestoreOperationInRootSpan(() => randomCol.add({foo: 'bar'}));
893885
await waitForCompletedSpans(4);
894886
expectSpanHierarchy(
895887
SPAN_NAME_TEST_ROOT,
@@ -905,9 +897,7 @@ describe.skipEnterprise('Tracing Tests', () => {
905897

906898
// Enterprise: field mask is not supported
907899
it.skipEnterprise('collection reference list documents', async () => {
908-
await runFirestoreOperationInRootSpan(() =>
909-
randomCol.listDocuments(),
910-
);
900+
await runFirestoreOperationInRootSpan(() => randomCol.listDocuments());
911901
await waitForCompletedSpans(2);
912902
expectSpanHierarchy(
913903
SPAN_NAME_TEST_ROOT,
@@ -965,7 +955,9 @@ describe.skipEnterprise('Tracing Tests', () => {
965955
await transaction.get(docRef1);
966956
await transaction.getAll(docRef1, docRef2);
967957
await transaction.get(randomCol.limit(1));
968-
await transaction.get(firestore.collection('nonexistent_' + autoId()).count());
958+
await transaction.get(
959+
firestore.collection('nonexistent_' + autoId()).count(),
960+
);
969961
transaction.set(randomCol.doc(), {foo: 'bar'});
970962
});
971963
});

0 commit comments

Comments
 (0)