31 Commits

Author SHA1 Message Date
Igor Savin
3c6a1fb852
Fix final tests failing on CockroachDB (#4741) 2021-10-15 18:02:55 +03:00
Igor Savin
941b660f53
Initial infrastructure for CockroachDB (#4571) 2021-10-02 23:45:17 +03:00
Matt Machuga
0ab482bcfb
Unify db test helpers (#4356) 2021-03-08 14:16:07 +02:00
Igor Savin
e37aeaa31c
Prepare for 0.21.0 release (#3811) 2020-04-19 00:40:23 +02:00
maximelkin
8159f04c12
Remove dependency on bluebird methods from tests (#3682)
* Remove dependency on bluebird methods from tests
* Introduce `"chai-as-promised"` plugin
* Minor enhancements to the testing logic
2020-02-24 19:24:30 -05:00
maximelkin
4a71315e9c remove bluebird.each (#3471) 2019-10-12 21:39:34 +02:00
Harminder Virk
831b9bcc43 fix: make transaction rejection consistent across dialects (#3399) 2019-08-17 13:01:03 +02:00
Igor Savin
1e950b93e4
Name Bluebird usage explicitly. Remove spread and thenReturn (#3285) 2019-06-17 02:14:17 +02:00
Henry Williams
2611e5a300 Fix linter errors in tests (#2859)
* fix lint errors for tests
2018-10-15 22:29:53 -04:00
Tim Griesser
232fe9f151
Add Prettier (#2697)
* Add prettier
* Run files through prettier
2018-07-09 08:10:34 -04:00
Mikael Lepistö
cb3a85e738
Normalized and validated driverNames of test db clients and fixed oracle test setup (#2692)
* Normalized and validated driverNames of test db clients and fixed oracle test setup

* Fixed failed queries from old query building tests which hadn't been ran in ages

* Allow selecting node version which is used to run oracledb docker tests

* Improved sql tester error messages

* Fixed rest of the oracledb tests

* Removed invalid flag from docker-compose

* Print mssql logs if initialization fails

* Fixed syntax error + final tests

* Added restart of failure for mssql DB initialization to try again if server was not ready

* Printout always mssql logs after container is started

* Fixed wait time printing after trying to connect

* Use npm run oracledb:test for testing oracle in travis
2018-07-08 14:10:51 +03:00
Tim Griesser
f2215c40d8 Updating/pruning some deps 2016-10-12 01:05:08 -04:00
Jurko Gospodnetić
19477f6832 merge changes from master 2016-03-09 07:11:17 +01:00
Jurko Gospodnetić
16a076c1a0 trim trailing spaces
Only left alone ones in `test/tape/transactions.js` which would just
cause unnecessary conflicts and get cleaned up by separate pull
request #1257 anyway.
2016-03-08 08:44:01 +01:00
Jurko Gospodnetić
96bd74e0c1 remove now redundant test case
Already covered directly by the `transaction rollback on error throw`
test case.
2016-03-08 08:05:17 +01:00
Jurko Gospodnetić
3225ab45bc test transaction callback throwing an error 2016-03-08 07:50:54 +01:00
Jurko Gospodnetić
3d8131b5eb add missing tape assertion descriptions
The default `should be equal` description is not of much use in tracking
down failed assertions.
2016-03-08 07:50:20 +01:00
Jurko Gospodnetić
85b780d4fa sync test comments about oracle & mssql not reporting BEGIN/ROLLBACK as queries 2016-03-08 07:50:19 +01:00
Jurko Gospodnetić
675c684d3b test sibling nested transactions 2016-02-25 12:32:09 +01:00
Sky Morey
1793f9ad45 first pass of build modifications 2015-12-10 15:14:43 -06:00
Sky Morey
198aa0db4b fixed lint issues, fixed mssql transaction 2015-12-10 13:35:37 -06:00
Mikael Lepistö
b9d9a99f80 Added \? escape sequence to postgres dialect to allow using ? operator. 2015-08-25 10:19:35 +03:00
Tim Griesser
470428032d Fix #832, errors thrown in trx container trigger rejection 2015-05-20 11:19:12 -04:00
Tim Griesser
6d93ba2c21 #805 - mysql2 doesn't include errno, sidorares/node-mysql2#168 2015-05-01 11:53:55 -04:00
Tim Griesser
12e6ada1a3 Fix for #805, warn for non-existent savepoints
In MySQL if a savepoint is missing, it means something
else (most likely DDL) triggered an implicit commit. In this
case rather than erroring, let's give a warning message
so it's possible to use the same codepath as a DB where
this actually works.
2015-05-01 11:26:29 -04:00
Tim Griesser
e179634600 Switch to shell script for release, other tidying of config/directories 2015-04-29 19:13:50 -04:00
Tim Griesser
5047ab8d76 Cleanup transaction test noise 2015-04-28 19:11:43 -04:00
Tim Griesser
f0ea3a269d Add test for #785 2015-04-28 15:05:17 -04:00
Tim Griesser
f735dcb9c8 Raw identifiers and named parameters
Adds ?? for interpolating identifiers in raw
statements. Also adds raw(sql, obj) for
named :key syntax. Alternatively, 🔑
(trailing colon) may be used to specify an
identifier as a parameter.
2015-04-27 15:58:48 -04:00
Tim Griesser
f3c45a0b10 Test to ensure #625 is fixed 2015-04-24 15:20:35 -04:00
Tim Griesser
36ced91ed5 Testing transactions, beginning to use tape, adding query to error message 2015-04-24 10:10:34 -04:00