Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
public
/
sequelize
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
不要怂,就是干,撸起袖子干!
Commit bc3094a8
authored
May 29, 2014
by
Mick Hansen
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
remove bad tests
1 parent
5ffb9cc4
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
43 deletions
test/transaction.test.js
test/transaction.test.js
View file @
bc3094a
...
...
@@ -20,18 +20,6 @@ describe(Support.getTestDialectTeaser("Transaction"), function () {
})
})
describe
(
'success'
,
function
()
{
it
(
"is a success method available"
,
function
()
{
expect
(
Transaction
).
to
.
respondTo
(
"success"
)
})
})
describe
(
'error'
,
function
()
{
it
(
"is an error method available"
,
function
()
{
expect
(
Transaction
).
to
.
respondTo
(
"error"
)
})
})
describe
(
'commit'
,
function
()
{
it
(
'is a commit method available'
,
function
()
{
expect
(
Transaction
).
to
.
respondTo
(
'commit'
)
...
...
@@ -44,37 +32,6 @@ describe(Support.getTestDialectTeaser("Transaction"), function () {
})
})
describe
(
'done'
,
function
()
{
it
(
'gets called when the transaction gets commited'
,
function
(
done
)
{
var
transaction
=
new
Transaction
(
this
.
sequelize
)
transaction
.
done
(
done
)
transaction
.
prepareEnvironment
(
function
()
{
transaction
.
commit
()
})
})
it
(
'works for long running transactions'
,
function
(
done
)
{
var
transaction
=
new
Transaction
(
this
.
sequelize
)
,
self
=
this
transaction
.
done
(
done
)
transaction
.
prepareEnvironment
(
function
()
{
setTimeout
(
function
()
{
self
.
sequelize
.
query
(
'select 1+1 as sum'
,
null
,
{
raw
:
true
,
plain
:
true
,
transaction
:
transaction
}).
done
(
function
(
err
,
result
)
{
expect
(
err
).
to
.
be
.
null
expect
(
result
.
sum
).
to
.
equal
(
2
)
transaction
.
commit
()
})
},
2000
)
})
})
})
if
(
dialect
!==
'sqlite'
)
{
describe
(
'row locking'
,
function
()
{
this
.
timeout
(
10000
);
...
...
Write
Preview
Markdown
is supported
Attach a file
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 post a comment