Skip to content

Commit

Permalink
remove event not in prod.
Browse files Browse the repository at this point in the history
  • Loading branch information
ehsannas committed Nov 26, 2024
1 parent de36911 commit 4f46b08
Showing 1 changed file with 7 additions and 9 deletions.
16 changes: 7 additions & 9 deletions dev/system-test/tracing.ts
Original file line number Diff line number Diff line change
Expand Up @@ -680,32 +680,31 @@ describe.only('Tracing Tests', () => {
// to this function.
if (span?.events) {
const numEvents = eventNames.length;
console.log(`${span.events.map(value => value.name)} did not match ${eventNames}`);
expect(numEvents).to.equal(span.events.length, `${span.events.map(value => value.name)} did not match ${eventNames}`);

Check failure on line 683 in dev/system-test/tracing.ts

View workflow job for this annotation

GitHub Actions / lint

Replace `span.events.length,·`${span.events.map(value·=>·value.name)}·did·not·match·${eventNames}`` with `⏎········span.events.length,⏎········`${span.events.map(value·=>·value.name)}·did·not·match·${eventNames}`⏎······`
for (let i = 0; i < numEvents; ++i) {
expect(span.events[i].name).to.equal(eventNames[i]);
}
}
}

describe.only(IN_MEMORY_TEST_SUITE_TITLE, () => {
describe.only(NON_GLOBAL_OTEL_TEST_SUITE_TITLE, () => {
describe.only(GRPC_TEST_SUITE_TITLE, () => {
describe(IN_MEMORY_TEST_SUITE_TITLE, () => {
describe(NON_GLOBAL_OTEL_TEST_SUITE_TITLE, () => {
describe(GRPC_TEST_SUITE_TITLE, () => {
beforeEach(function () {
beforeEachTest(this.currentTest!);
});
runTestCases();
afterEach(async () => afterEachTest());
});
describe.skip(REST_TEST_SUITE_TITLE, () => {
describe(REST_TEST_SUITE_TITLE, () => {
beforeEach(function () {
beforeEachTest(this.currentTest!);
});
runTestCases();
afterEach(async () => afterEachTest());
});
});
describe.skip(GLOBAL_OTEL_TEST_SUITE_TITLE, () => {
describe(GLOBAL_OTEL_TEST_SUITE_TITLE, () => {
describe(GRPC_TEST_SUITE_TITLE, () => {
beforeEach(function () {
beforeEachTest(this.currentTest!);
Expand All @@ -723,7 +722,7 @@ describe.only('Tracing Tests', () => {
});
});

describe.skip(E2E_TEST_SUITE_TITLE, () => {
describe(E2E_TEST_SUITE_TITLE, () => {
describe(NON_GLOBAL_OTEL_TEST_SUITE_TITLE, () => {
describe(GRPC_TEST_SUITE_TITLE, () => {
beforeEach(function () {
Expand Down Expand Up @@ -872,7 +871,7 @@ describe.only('Tracing Tests', () => {
);
});

it.only('query get()', async () => {
it('query get()', async () => {
await runFirestoreOperationInRootSpan(() =>
firestore.collection('foo').where('foo', '==', 'bar').limit(1).get()
);
Expand All @@ -882,7 +881,6 @@ describe.only('Tracing Tests', () => {
'RunQuery',
'Firestore.runQuery: Start',
'Firestore.runQuery: First response received',
'Firestore.runQuery: Received RunQueryResponse.Done.',
'Firestore.runQuery: Completed',
]);
});
Expand Down

0 comments on commit 4f46b08

Please sign in to comment.