Brian C
796a44f54f
Remove internal pool ( #1049 )
...
* Initial work on removing internal pool
* Port backwards-compabible properties
* Cleanup test execution & makefile cruft
* Attempt to fix flakey error test
2016-06-21 09:53:09 -05:00
Brian M. Carlson
75473221e7
Print out unfired function
2014-10-01 19:03:24 -04:00
Brian M. Carlson
667c528ea6
Work towards more tests passing
2014-09-14 01:23:02 -04:00
Ricky Ng-Adam
8fb28c5cfe
test timeout value modifiable globally with TEST_TIMEOUT env variable
2014-05-02 12:32:15 +08:00
Ricky Ng-Adam
1345516117
bump up timeout for tests against AWS from 5s to 15s
2014-04-25 13:49:18 +08:00
Nikhil Benesch
b778f2bdf0
utils-tests: add unit tests for prepareValue
2014-03-30 19:03:24 -04:00
bmc
21ca91d801
allow assert.success to accept 0 arity callback
2013-04-04 11:54:31 -05:00
brianc
9c7a33caca
remove 2 parameter pg.connect function
2013-03-07 15:57:00 -06:00
brianc
f30158f7c4
deprecate float parsing - closes #296
2013-03-07 09:54:01 -06:00
brianc
1c43930ba1
cleanup & fix failing tests to allow for green merge of pull #228
2012-12-10 22:44:58 -06:00
brianc
0c487fc078
give failing tests a name
2012-12-10 22:26:23 -06:00
brianc
f5b49f1f42
increase test timeout for travis
2012-08-07 08:36:30 -05:00
brianc
e4a5f2edad
remove '0' character from test output
2012-07-11 22:46:19 -05:00
brianc
dd84db367b
reduce complexity of test runner
2012-05-30 22:12:14 -05:00
Alexander Sulfrian
f698ed4459
use config dict in all test
...
instead of the connection string use the config dict in all tests to
be able to specify things like binary mode
2011-11-22 05:00:54 +01:00
brianc
06585d6e2c
require 'util' instead of 'sys'
2011-10-10 19:40:52 -05:00
brianc
afe4382c63
change assert.length to assert.lengthIs
2011-10-10 19:21:06 -05:00
Homme Zwaagstra
21b597ef17
All errors are now instances of the built in Error class
...
This is a fix for issue #50 . It alters both the native binding and the
javascript binding to ensure that any errors returned by Postgresql
are returned to the client code as instances of the built in Error
class.
The test code has been updated to assert that this is the case. Rather
than run some individual tests the updated test code ensures this is
the case for *all* errors encountered during a test run.
2011-09-22 12:36:12 +01:00
brianc
d9fbe9e878
remove require.paths use
2011-08-29 02:35:08 -05:00
ben hockey
8ffdfc16e4
added check for month in assert.UTCDate and fixed broken test
2011-08-12 12:17:43 -04:00
brianc
ca851e40f6
ability to supply custom message to assert.emits
2011-05-19 20:04:48 -05:00
brianc
7e2f713af3
running all client integration tests against native client - many failures
2011-03-03 18:21:43 +00:00
brianc
b7c3db5f32
error test
2011-02-24 21:50:17 -06:00
Brian Carlson
7d05daaf2c
removed some globals from tests
2011-02-23 19:50:43 -06:00
Brian Carlson
7b365ffc24
changed '--libpg true' flag to '--libpq true'
2011-02-23 18:45:39 -06:00
brianc
ce56fb6453
beginning of js Client compatible api
2011-02-22 23:52:25 -06:00
brianc
edea8967d2
stage up the ability to run libpg based client integration tests
2011-02-22 22:48:51 -06:00
Brian Carlson
8e8352127a
decrease emit timeout time
2011-02-22 19:32:18 -06:00
Brian Carlson
1aa8880c25
fixed asserter for success
2011-01-21 16:53:17 -06:00
Brian Carlson
3fd8d3f853
helper function to test for query successes
2011-01-21 15:13:58 -06:00
Brian Carlson
9a08f51a72
better printing of actual/expected buffers in error for visual compare
2011-01-14 15:18:56 -06:00
brianc
49f5da8f02
make the test name printing an option via the "verbose" command line argument
2010-12-19 14:46:43 -06:00
Julian Birch
721cf56eb3
Rows are now associative arrays rather than straight arrays.
2010-12-19 09:41:11 +00:00
Brian Carlson
fb463923d8
test refactoring
2010-12-14 19:23:01 -06:00
Brian Carlson
af997d914b
refactored test execution to use makefile
...
integration tests all running in the same process were stepping on eachother. each test file is now run within its own node process
2010-12-14 18:50:18 -06:00
Brian Carlson
70f8b998d8
added sink object for testing async long running query pool
2010-12-13 17:20:51 -06:00
Brian Carlson
ab13d0c1eb
initial crack at connection pooling -- still dirty
2010-12-10 17:32:34 -06:00
Brian Carlson
0d03db5d28
added assert.isNull
2010-12-09 20:53:59 -06:00
Brian Carlson
10a244ae4c
made timeout lenght of assert.calls configurable and made tests die
...
sooner on error
2010-12-09 20:50:19 -06:00
Brian Carlson
169c6dc3ce
Pool object for use in connection pooling
2010-12-09 18:10:42 -06:00
Brian Carlson
d4ac9b4024
make 'assert.calls' short circuit on function call
2010-12-02 17:48:39 -06:00
Brian Carlson
9447b78e9f
added quick assertion helper to check for callbacks being executed
2010-12-02 14:43:17 -06:00
brianc
8ec671a67c
added test & fix for missing 'sys' require in query.js
2010-11-03 16:47:26 -05:00
brianc
1b9ccf97e9
reduced number of flush messages during prepared statement, 2x performance
2010-11-02 03:29:11 -05:00
brianc
aa53908e88
updating tests to use fewer connections and up timeout for slower machines
2010-11-02 18:15:41 -05:00
brianc
07010389ff
basic (ugly) date type coercion tests
2010-11-01 00:27:06 -05:00
brianc
0d2d6b5107
Moved buffer list to test directory and replaced w/ slightly cleaner
...
"writer" for use in the library code. BufferList was always supposed
to be a test helper and the api is trash
2010-10-31 18:21:37 -05:00
brianc
d2079478da
change name of assert.raises to assert.emits
2010-10-31 14:43:10 -05:00
brianc
ccc04cdd0b
add cli parsing to all tests
2010-10-25 01:30:14 -05:00
brianc
6600bc603c
better error message on timeout firing because event wasn't raised in assert.raises
2010-10-24 23:18:23 -05:00