Skip to content

Commit

Permalink
fix test
Browse files Browse the repository at this point in the history
  • Loading branch information
gurgunday committed Jul 5, 2024
1 parent 5bb6e44 commit 2ebd605
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 4 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ jobs:
node-version: ${{ matrix.node-version }}

- name: Install dependencies
run: npm i --ignore-scripts
run: npm i

- name: Run tests
run: npm test
5 changes: 3 additions & 2 deletions test/consumer.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,11 +13,12 @@ const options = {
}

test('unreachable brokers', t => {
t.plan(2)
t.plan(3)
const consumer = new Consumer(options, log, (err) => {
t.ok(err)
consumer.on('error', t.ok)
consumer.on('ready', t.error)
}, {}, { timeout: 200 })
consumer.on('ready', t.error)
t.after(() => {
consumer.stop()
})
Expand Down
2 changes: 1 addition & 1 deletion test/producer.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ test('unreachable brokers', t => {
producer.push()
}, {}, { timeout: 200 })
t.after(() => {
consumer.stop()
producer.stop()
})
})

Expand Down

0 comments on commit 2ebd605

Please sign in to comment.