Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
N
node-sqlite3
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
俞永鹏
node-sqlite3
Commits
93d96dad
Unverified
Commit
93d96dad
authored
Apr 30, 2018
by
Kewde
Committed by
GitHub
Apr 30, 2018
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
test: wait for db to unlock first.
parent
65de9a7a
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
2 deletions
+5
-2
each.test.js
test/each.test.js
+5
-2
No files found.
test/each.test.js
View file @
93d96dad
...
@@ -11,15 +11,18 @@ describe('each', function() {
...
@@ -11,15 +11,18 @@ describe('each', function() {
var
total
=
100000
;
var
total
=
100000
;
var
retrieved
=
0
;
var
retrieved
=
0
;
db
.
wait
(
function
()
{
db
.
each
(
'SELECT id, txt FROM foo LIMIT 0, ?'
,
total
,
function
(
err
,
row
)
{
db
.
each
(
'SELECT id, txt FROM foo LIMIT 0, ?'
,
total
,
function
(
err
,
row
)
{
if
(
err
)
throw
err
;
if
(
err
)
throw
err
;
retrieved
++
;
retrieved
++
;
});
});
db
.
wait
(
setTimeou
t
(
function
()
{
db
.
wai
t
(
function
()
{
assert
.
equal
(
retrieved
,
total
,
"Only retrieved "
+
retrieved
+
" out of "
+
total
+
" rows."
);
assert
.
equal
(
retrieved
,
total
,
"Only retrieved "
+
retrieved
+
" out of "
+
total
+
" rows."
);
done
();
done
();
},
400
));
});
});
});
});
it
(
'Statement#each with complete callback'
,
function
(
done
)
{
it
(
'Statement#each with complete callback'
,
function
(
done
)
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment