Skip to content

Commit

Permalink
#86 Fix test failure
Browse files Browse the repository at this point in the history
  • Loading branch information
feelform committed May 27, 2021
1 parent 5e0cbea commit 3a1c6d0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/client/grpc-data-sender-client-side-stream.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -274,7 +274,7 @@ test('gRPC client side stream reconnect test', (t) => {
t.deepEqual(actuals.data, {}, 'actuals data')
t.false(actuals.ended, 'client side stream lives')

given.deadline = given.deadline - (5 * 60 * 1000 + 100)
given.deadline = given.deadline - (10 * 60 * 1000 + 100)
const fistDeadline = given.deadline
given.write({ order: 2 })
t.deepEqual(actuals.data, { order: 2 }, 'actuals data is order: 2')
Expand Down Expand Up @@ -512,7 +512,7 @@ test('stream deadline test', (t) => {
}
}
})
t.equal(given.grpcStreamDeadline, 5 * 60 * 1000, 'default dealine times')
t.equal(given.grpcStreamDeadline, 10 * 60 * 1000, 'default dealine times')

given.setDeadlineMinutes(6)
t.equal(given.grpcStreamDeadline, 6 * 60 * 1000, '6 minutes dealine times')
Expand Down

0 comments on commit 3a1c6d0

Please sign in to comment.