@@ -875,7 +875,7 @@ describe('Selection strategies test suite', () => {
875875 // median: false,
876876 // },
877877 // waitTime: {
878- // aggregate: false ,
878+ // aggregate: true ,
879879 // average: false,
880880 // median: false,
881881 // },
@@ -901,7 +901,7 @@ describe('Selection strategies test suite', () => {
901901 // median: false,
902902 // },
903903 // waitTime: {
904- // aggregate: false ,
904+ // aggregate: true ,
905905 // average: false,
906906 // median: false,
907907 // },
@@ -942,9 +942,9 @@ describe('Selection strategies test suite', () => {
942942 // runTime: {
943943 // history: expect.any(CircularBuffer),
944944 // },
945- // waitTime: {
945+ // waitTime: expect.objectContaining( {
946946 // history: expect.any(CircularBuffer),
947- // },
947+ // }) ,
948948 // elu: expect.objectContaining({
949949 // idle: expect.objectContaining({
950950 // history: expect.any(CircularBuffer),
@@ -958,6 +958,11 @@ describe('Selection strategies test suite', () => {
958958 // expect(workerNode.usage.tasks.executed).toBeLessThanOrEqual(
959959 // max * maxMultiplier,
960960 // )
961+ // if (workerNode.usage.waitTime.aggregate == null) {
962+ // expect(workerNode.usage.waitTime.aggregate).toBeUndefined()
963+ // } else {
964+ // expect(workerNode.usage.waitTime.aggregate).toBeGreaterThan(0)
965+ // }
961966 // if (workerNode.usage.elu.active.aggregate == null) {
962967 // expect(workerNode.usage.elu.active.aggregate).toBeUndefined()
963968 // } else {
@@ -1017,9 +1022,9 @@ describe('Selection strategies test suite', () => {
10171022 // runTime: {
10181023 // history: expect.any(CircularBuffer),
10191024 // },
1020- // waitTime: {
1025+ // waitTime: expect.objectContaining( {
10211026 // history: expect.any(CircularBuffer),
1022- // },
1027+ // }) ,
10231028 // elu: expect.objectContaining({
10241029 // idle: expect.objectContaining({
10251030 // history: expect.any(CircularBuffer),
@@ -1033,6 +1038,11 @@ describe('Selection strategies test suite', () => {
10331038 // expect(workerNode.usage.tasks.executed).toBeLessThanOrEqual(
10341039 // max * maxMultiplier,
10351040 // )
1041+ // if (workerNode.usage.waitTime.aggregate == null) {
1042+ // expect(workerNode.usage.waitTime.aggregate).toBeUndefined()
1043+ // } else {
1044+ // expect(workerNode.usage.waitTime.aggregate).toBeGreaterThan(0)
1045+ // }
10361046 // if (workerNode.usage.elu.active.aggregate == null) {
10371047 // expect(workerNode.usage.elu.active.aggregate).toBeUndefined()
10381048 // } else {
0 commit comments