Skip to content

Commit

Permalink
fix: await for event listener to get set up (#263)
Browse files Browse the repository at this point in the history
* fix: await for event listener to get set up

* chore: update deps
  • Loading branch information
alewitt2 authored Nov 10, 2021
1 parent 720dae3 commit 914343e
Show file tree
Hide file tree
Showing 3 changed files with 63 additions and 62 deletions.
119 changes: 61 additions & 58 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@
"markdownlint-cli": "^0.29.0",
"mocha": "^9.1.3",
"nock": "^13.2.0",
"npm-check-updates": "^12.0.0",
"npm-check-updates": "^12.0.2",
"npm-run-all": "^4.1.5",
"nyc": "^15.1.0",
"sinon": "^12.0.1",
Expand Down
4 changes: 1 addition & 3 deletions src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -43,9 +43,7 @@ async function createNewEventHandler(kc) {

async function main() {
const kc = new KubeClass(kubeApiConfig);
const eventHandlers = [];
eventHandlers.push(createNewEventHandler(kc));
return eventHandlers;
await createNewEventHandler(kc);
}

function createEventListeners() {
Expand Down

0 comments on commit 914343e

Please sign in to comment.