mirror of
https://github.com/thelounge/thelounge.git
synced 2024-06-22 23:36:37 +02:00
Merge pull request #2180 from thelounge/xpaw/ci
Try to fix sqlite test failing on CI randomly
This commit is contained in:
commit
08f2ebd373
|
@ -29,14 +29,18 @@ describe("SQLite Message Storage", function() {
|
|||
});
|
||||
});
|
||||
|
||||
it("should create database file", function() {
|
||||
it("should create database file", function(done) {
|
||||
expect(store.isEnabled).to.be.false;
|
||||
expect(fs.existsSync(expectedPath)).to.be.false;
|
||||
|
||||
store.enable("testUser");
|
||||
|
||||
expect(store.isEnabled).to.be.true;
|
||||
expect(fs.existsSync(expectedPath)).to.be.true;
|
||||
|
||||
store.database.serialize(() => {
|
||||
expect(fs.existsSync(expectedPath)).to.be.true;
|
||||
done();
|
||||
});
|
||||
});
|
||||
|
||||
it("should create tables", function(done) {
|
||||
|
|
Loading…
Reference in a new issue