Shuffle all test createRows
This commit is contained in:
parent
fc99fad3d2
commit
221c8a3f0a
|
@ -78,7 +78,7 @@ describe.each([
|
||||||
}
|
}
|
||||||
|
|
||||||
async function createRows(rows: Record<string, any>[]) {
|
async function createRows(rows: Record<string, any>[]) {
|
||||||
await config.api.row.bulkImport(table._id!, { rows })
|
await config.api.row.bulkImport(table._id!, { rows: _.shuffle(rows) })
|
||||||
}
|
}
|
||||||
|
|
||||||
class SearchAssertion {
|
class SearchAssertion {
|
||||||
|
@ -981,11 +981,13 @@ describe.each([
|
||||||
time: { name: "time", type: FieldType.DATETIME, timeOnly: true },
|
time: { name: "time", type: FieldType.DATETIME, timeOnly: true },
|
||||||
})
|
})
|
||||||
|
|
||||||
await createRows(
|
await createRows([
|
||||||
_.shuffle([T_1000, T_1045, T_1200, T_1530, T_0000]).map(time => ({
|
{ time: T_1000 },
|
||||||
time,
|
{ time: T_1045 },
|
||||||
}))
|
{ time: T_1200 },
|
||||||
)
|
{ time: T_1530 },
|
||||||
|
{ time: T_0000 },
|
||||||
|
])
|
||||||
})
|
})
|
||||||
|
|
||||||
describe("equal", () => {
|
describe("equal", () => {
|
||||||
|
|
Loading…
Reference in New Issue