Skip to content

Commit d8f0cc6

Browse files
committed
Update/Fix init plans scans duration proportionally
Take the e
1 parent 312da72 commit d8f0cc6

File tree

3 files changed

+263
-20
lines changed

3 files changed

+263
-20
lines changed

src/services/__tests__/cte-exclusive-time.spec.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,9 @@ tests.forEach((planTest: string) => {
4242
expect(
4343
sumExclusiveDuration([plan.content.Plan].concat(plan.ctes)),
4444
).toBeLessThan(max)
45+
46+
// Expect the exclusive time for the root node not to be negative
47+
expect(plan.content.Plan[NodeProp.EXCLUSIVE_DURATION]).toBeGreaterThan(0)
4548
})
4649
})
4750
})

0 commit comments

Comments
 (0)