Skip to content

Commit

Permalink
chore: remove commented code
Browse files Browse the repository at this point in the history
  • Loading branch information
CristiCanizales committed Jun 13, 2024
1 parent 08b2c0d commit ac08544
Showing 1 changed file with 0 additions and 10 deletions.
10 changes: 0 additions & 10 deletions src/tests/asyncTests.ts
Original file line number Diff line number Diff line change
Expand Up @@ -241,8 +241,6 @@ export class AsyncTests {
? `SELECT AsyncApexJobId, Status, ClassesCompleted, ClassesEnqueued, MethodsEnqueued, StartTime, EndTime, TestTime, TestSetupTime, UserId FROM ApexTestRunResult WHERE AsyncApexJobId = '${testRunId}'`
: `SELECT AsyncApexJobId, Status, ClassesCompleted, ClassesEnqueued, MethodsEnqueued, StartTime, EndTime, TestTime, UserId FROM ApexTestRunResult WHERE AsyncApexJobId = '${testRunId}'`;

// const testRunSummaryQuery = `SELECT AsyncApexJobId, Status, ClassesCompleted, ClassesEnqueued, MethodsEnqueued, StartTime, EndTime, TestTime, TestSetupTime, UserId FROM ApexTestRunResult WHERE AsyncApexJobId = '${testRunId}'`;

progress?.report({
type: 'FormatTestResultProgress',
value: 'retrievingTestRunSummary',
Expand Down Expand Up @@ -386,14 +384,6 @@ export class AsyncTests {
? `SELECT Id, QueueItemId, StackTrace, Message, RunTime, TestTimestamp, AsyncApexJobId, MethodName, Outcome, ApexLogId, IsTestSetup, ApexClass.Id, ApexClass.Name, ApexClass.NamespacePrefix FROM ApexTestResult WHERE QueueItemId IN (%s)`
: `SELECT Id, QueueItemId, StackTrace, Message, RunTime, TestTimestamp, AsyncApexJobId, MethodName, Outcome, ApexLogId, ApexClass.Id, ApexClass.Name, ApexClass.NamespacePrefix FROM ApexTestResult WHERE QueueItemId IN (%s)`;

// try {
// let apexTestResultQuery = 'SELECT Id, QueueItemId, StackTrace, Message, ';
// apexTestResultQuery +=
// 'RunTime, TestTimestamp, AsyncApexJobId, MethodName, Outcome, ApexLogId, IsTestSetup, ';
// apexTestResultQuery +=
// 'ApexClass.Id, ApexClass.Name, ApexClass.NamespacePrefix ';
// apexTestResultQuery += 'FROM ApexTestResult WHERE QueueItemId IN (%s)';

const apexResultIds = testQueueResult.records.map((record) => record.Id);

// iterate thru ids, create query with id, & compare query length to char limit
Expand Down

0 comments on commit ac08544

Please sign in to comment.