@playwright-orchestrator/pg 1.0.4 → 1.0.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@playwright-orchestrator/pg",
3
- "version": "1.0.4",
3
+ "version": "1.0.5",
4
4
  "keywords": [],
5
5
  "author": "Rostyslav Kudrevatykh",
6
6
  "license": "Apache-2.0",
@@ -13,4 +13,5 @@ export declare class PostgreSQLAdapter extends Adapter {
13
13
  initialize(): Promise<void>;
14
14
  startShard(runId: string): Promise<TestRunConfig>;
15
15
  finishShard(runId: string): Promise<void>;
16
+ dispose(): Promise<void>;
16
17
  }
@@ -145,5 +145,10 @@ class PostgreSQLAdapter extends core_1.Adapter {
145
145
  values: [core_1.RunStatus.Finished, runId],
146
146
  });
147
147
  }
148
+ async dispose() {
149
+ if (this.pool.ending)
150
+ return;
151
+ await this.pool.end();
152
+ }
148
153
  }
149
154
  exports.PostgreSQLAdapter = PostgreSQLAdapter;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@playwright-orchestrator/pg",
3
- "version": "1.0.4",
3
+ "version": "1.0.5",
4
4
  "keywords": [],
5
5
  "author": "Rostyslav Kudrevatykh",
6
6
  "license": "Apache-2.0",