micro-analytics / micro-analytics/micro-analytics-cli
Connection leaks in adapter tests
まだ誰も着手していません。
- 主要言語
- JavaScript
- スター
- 732
- フォーク
- 39
- PR マージ指標
- 30日以内にマージされた PR はありません
説明
The adapter tests does not close connection correctly resulting in tests for the redis adapter never quitting.
The problem is the at the moment is call init should not throw. Overwrites the connections with new one and then when the tests closes connection in afterEach the connection created in beforeEach is not closed.
I think it would be a good thing to require adapter.close() and handle the closing of database connections in the adapter utils.
コントリビューションガイド
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
調査の方向性
call init should not throw 周辺のアダプターテストから始め、次にアダプターのユーティリティと beforeEach/afterEach の接続ライフサイクルを調べます。Redis アダプターのテストを再現し、どの接続が置き換えられているかを追跡します。テストで作成されたすべての接続が閉じられ、Redis のテストが正常に終了すれば完了です。
索引モデルが issue の本文から書いたものです。
評価
- 技術スタック
- javascript, node.js, redis
- 領域
- backend, databases, testing-qa
- issue の種類
- バグ
- 難易度
- 3/5
- 見積もり時間
- 1〜2日
- 活発さ
- 停滞
- 明瞭さ
- おおむね明確
- 初心者へのやさしさ
- 35/100