SequelizeDatabaseError:从存储引擎收到错误-1

时间:2018-09-12 12:50:34

标签: node.js testing mocha sequelize.js chai

我正在运行npm测试,一切正常 突然我运行它并收到此错误 SequelizeDatabaseError:存储引擎出现错误-1

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
  });
});

在钩子之前 你有什么解释吗?

0 个答案:

没有答案