Shuffle all test createRows

This commit is contained in:
Adria Navarro 2024-05-21 13:31:15 +02:00
parent fc99fad3d2
commit 221c8a3f0a
1 changed files with 8 additions and 6 deletions

View File

@ -78,7 +78,7 @@ describe.each([
}
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 {
@ -981,11 +981,13 @@ describe.each([
time: { name: "time", type: FieldType.DATETIME, timeOnly: true },
})
await createRows(
_.shuffle([T_1000, T_1045, T_1200, T_1530, T_0000]).map(time => ({
time,
}))
)
await createRows([
{ time: T_1000 },
{ time: T_1045 },
{ time: T_1200 },
{ time: T_1530 },
{ time: T_0000 },
])
})
describe("equal", () => {