Skip to content

Commit

Permalink
update test
Browse files Browse the repository at this point in the history
  • Loading branch information
bahung1221 committed Sep 23, 2019
1 parent 1622ba5 commit d723351
Showing 1 changed file with 11 additions and 9 deletions.
20 changes: 11 additions & 9 deletions test/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,15 +2,17 @@
const assert = require('assert')
const Transporter = require('../lib/transporter/base')
const broker = require('../broker')({
transporter: 'nats',
transporterOptions: {
servers: ['nats://demo.nats.io:4222'],
timeout: 3000,
pingInterval: 120000,
reconnect: true,
reconnectTimeWait: 2000,
maxReconnectAttempts: 10,
maxRequestRetryAttempts: 3,
transporter: {
name: 'nats',
options: {
servers: ['nats://demo.nats.io:4222'],
timeout: 3000,
pingInterval: 120000,
reconnect: true,
reconnectTimeWait: 2000,
maxReconnectAttempts: 10,
maxRequestRetryAttempts: 3,
},
},
})
const app = broker.createService({ name: 'foo' })
Expand Down

0 comments on commit d723351

Please sign in to comment.