We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b42b1b1 commit 480978bCopy full SHA for 480978b
test/app.js
@@ -96,7 +96,7 @@ describe('Tarantool Connection tests', function(){
96
it('a lot of insert', function(done){
97
var promises = [];
98
for (var i = 0; i <= 1000; i++) {
99
- conn.insert(512, ['key' + i, i]); // ok
+ conn.insert(512, ['key' + i, i]);
100
}
101
Promise.all(promises)
102
.then(function(pr){
@@ -105,6 +105,15 @@ describe('Tarantool Connection tests', function(){
105
.catch(function(e){
106
done(e);
107
});
108
- })
+ });
109
+ it('check errors', function(done){
110
+ conn.insert(512, ['key', 'key', 'key'])
111
+ .then(function(){
112
+ done(new Error('Right when need error'));
113
+ })
114
+ .catch(function(e){
115
+ done();
116
117
118
119
0 commit comments