Skip to content

Commit

Permalink
test(cursor): test cursorsKilled as Long and Number
Browse files Browse the repository at this point in the history
  • Loading branch information
mbroadst committed Dec 19, 2017
1 parent fa0fbc0 commit 3f69250
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions test/functional/cursor_tests.js
Expand Up @@ -4223,9 +4223,11 @@ describe('Cursor', function() {
if (
response &&
response.cursorsKilled &&
typeof response.cursorsKilled === 'number'
Array.isArray(response.cursorsKilled)
) {
response.cursorsKilled = Long.fromNumber(response.cursorsKilled);
response.cursorsKilled = response.cursorsKilled.map(
id => (typeof id === 'number' ? Long.fromNumber(id) : id)
);
}

expect(response)
Expand Down

0 comments on commit 3f69250

Please sign in to comment.