Skip to content

Commit

Permalink
test(cardano-services): add stake pool db snapshot
Browse files Browse the repository at this point in the history
  • Loading branch information
Ivaylo Andonov committed May 30, 2023
1 parent 3ed88b8 commit f862859
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion packages/cardano-services/test/jest-setup/jest-setup.ts
Expand Up @@ -19,6 +19,11 @@ const databaseConfigs = {
database: 'localnetwork',
fixture: false,
snapshot: true
},
stakePool: {
database: process.env.POSTGRES_DB_STAKE_POOL!,
fixture: false,
snapshot: true
}
};

Expand Down Expand Up @@ -79,7 +84,7 @@ module.exports = async () => {

const pgContainer = await DockerUtil.setupPostgresContainer(user, password, port || '5432');
await setupDBData(databaseConfigs.localnetwork, user, pgContainer);
await createDatabase(pgContainer, user, process.env.POSTGRES_DB_STAKE_POOL!);
await setupDBData(databaseConfigs.stakePool, user, pgContainer);

const container = new RabbitMQContainer();

Expand Down
Binary file not shown.

0 comments on commit f862859

Please sign in to comment.