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
bf4770a1
Commit
bf4770a1
authored
Apr 16, 2020
by
Jim Schlight
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Change causes test fail on Node.js 12, macOS
parent
6d40993d
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
affected.test.js
test/affected.test.js
+2
-2
No files found.
test/affected.test.js
View file @
bf4770a1
...
@@ -11,7 +11,7 @@ describe('query properties', function() {
...
@@ -11,7 +11,7 @@ describe('query properties', function() {
it
(
'should return the correct lastID'
,
function
(
done
)
{
it
(
'should return the correct lastID'
,
function
(
done
)
{
var
stmt
=
db
.
prepare
(
"INSERT INTO foo VALUES(?, ?)"
);
var
stmt
=
db
.
prepare
(
"INSERT INTO foo VALUES(?, ?)"
);
var
j
=
1
;
var
j
=
1
;
for
(
var
i
=
0
;
i
<
1
000
;
i
++
)
{
for
(
var
i
=
0
;
i
<
5
000
;
i
++
)
{
stmt
.
run
(
i
,
"demo"
,
function
(
err
)
{
stmt
.
run
(
i
,
"demo"
,
function
(
err
)
{
if
(
err
)
throw
err
;
if
(
err
)
throw
err
;
// Relies on SQLite's row numbering to be gapless and starting
// Relies on SQLite's row numbering to be gapless and starting
...
@@ -25,7 +25,7 @@ describe('query properties', function() {
...
@@ -25,7 +25,7 @@ describe('query properties', function() {
it
(
'should return the correct changes count'
,
function
(
done
)
{
it
(
'should return the correct changes count'
,
function
(
done
)
{
db
.
run
(
"UPDATE foo SET id = id + 1 WHERE id % 2 = 0"
,
function
(
err
)
{
db
.
run
(
"UPDATE foo SET id = id + 1 WHERE id % 2 = 0"
,
function
(
err
)
{
if
(
err
)
throw
err
;
if
(
err
)
throw
err
;
assert
.
equal
(
500
,
this
.
changes
);
assert
.
equal
(
2
500
,
this
.
changes
);
done
();
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