Skip to content

Commit

Permalink
Avoid using same database name for testing
Browse files Browse the repository at this point in the history
Signed-off-by: Stefan Marr <git@stefan-marr.de>
  • Loading branch information
smarr committed Mar 17, 2024
1 parent dfc30d0 commit f7e79e0
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion tests/backend/main/main.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,7 @@ describe('getLast100Measurements', () => {

let db: TestDatabase;
beforeAll(async () => {
db = await createAndInitializeDB('main_basic', 25, true, false);
db = await createAndInitializeDB('main_main', 25, true, false);
});

afterAll(async () => {
Expand Down
2 changes: 1 addition & 1 deletion tests/backend/main/with-data.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ describe('Test with basic test data loaded', () => {
// switch suites to use a template database

beforeAll(async () => {
db = await createAndInitializeDB('main_basic', 25, true, false);
db = await createAndInitializeDB('main_with_data', 25, true, false);

const data = readFileSync(
robustPath('../tests/data/small-payload.json')
Expand Down

0 comments on commit f7e79e0

Please sign in to comment.