I am runing npm test and everything is ok suddenly i run it and got this error SequelizeDatabaseError: Got error -1 from storage engine
before(async function() {
await machines.destroy({
truncate: true,
force: true,
individualHooks: true,
logging: true
});
await machines.create({
name: "machinetest1",
description: "machinetest1description",
individualHooks: true
});
await machines.create({
name: "machinetest2",
description: "machinetest2description",
individualHooks: true
});
await machines.create({
name: "machinetest3",
description: "machinetest3description",
individualHooks: true
});
});
It is in before hook Do you have any explanation?
Aucun commentaire:
Enregistrer un commentaire