koichik
8293bb8a32
test: refactored http test.
Many http tests had used legacy http.Client.
This refactored it to use modern API.
Fixes #1528 .
14 years ago
Mikeal Rogers
48dcb905f6
Update tests for http2.
14 years ago
Ryan Dahl
9c77169112
make test-process-uptime fail less often
14 years ago
Ryan Dahl
4d22405f0f
TimerWrap: mimic libev ref count semantics
14 years ago
Ryan Dahl
9d1bad8960
Implement new wrap for uv timer
14 years ago
Jorge Chamorro Bieling
e7604b1ea7
Retain buffers in fs.read/write()
Closes GH-814.
Closes GH-827.
14 years ago
Ryan Dahl
3c0dd8196a
Fix test-process-uptime.js test
14 years ago
Ryan Dahl
55048cdf79
Update copyright headers
14 years ago
Ryan Dahl
1f50d711b2
Fix memleak in vm.runInNewContext
Closes GH-704.
14 years ago
Ryan Dahl
26e580bbc4
Use console.error in test-timers
In attempt to understand buildbot failures.
14 years ago
Ryan Dahl
7f78e5857f
Move test-tls-throttle to pummel
14 years ago
Ryan Dahl
e0e52f930e
Remove artificial timeout from test-https-large-response
14 years ago
Ryan Dahl
60ad3aa917
Disable test-tls-large-push, taking too long
14 years ago
Ryan Dahl
97f7c06451
TLS: fix throttling
Re-enable test-https-large-response.js
Closes GH-614.
14 years ago
Ryan Dahl
41b4ec7952
TLS: flush buffer before destroy
Also disable test-https-large-response.js. Covered by
test/simple/test-tls-throttle.js
14 years ago
Ryan Dahl
6ede26cb9c
Add socket.bufferSize
14 years ago
Ryan Dahl
286389202f
Fix pummel/text-exec
14 years ago
Ryan Dahl
a86747603c
Fix test-http-upload-timeout
Cannot just close the connection or client will error.
14 years ago
Ryan Dahl
7a16e2a2a0
test-http-client-reconnect-bug: hang up should be error.
14 years ago
Ryan Dahl
39535d74df
move test-exec to pummel - too slow
14 years ago
Jorge Chamorro Bieling
e530507cb1
Add failing test for GH-511
14 years ago
Oleg Efimov
093dfaf801
GJSLint all tests, only 3 long lines left in test-url.js
test/simple/test-url.js:31:(0110) Line too long (82 characters).
test/simple/test-url.js:39:(0110) Line too long (85 characters).
test/simple/test-url.js:40:(0110) Line too long (92 characters).
14 years ago
Ryan Dahl
92789b16e5
Fix global leaks
14 years ago
Ryan Dahl
a0159b4b29
Fix global leaks
14 years ago
Oleg Efimov
c0d69a4883
GJSLint part of tests
14 years ago
Michael W
645c3b3713
Fixed: clearTimeouts calling multiple times
When clearTimeouts was called on a timer multiple times, it would break the
doubly-linked list along with future timeouts. This patch fixes that.
14 years ago
Ryan Dahl
df46c8e698
Rip out the old TLS implementation
14 years ago
Ryan Dahl
7a48fd8455
Handle null values in clearTimeout
14 years ago
Ryan Dahl
2470d2ee92
allowHalfOpen disabled by default
Users too often would forget to add
socket.on('end', function () {
socket.end();
});
Which is a mistake. Therefore we default to this behavior and
only optionally let people handle the 'end' case themselves.
14 years ago
Ryan Dahl
fcd0c3ebc0
Remove test-base64-bigfile
Already tested in test/simple/test-buffer.js. Takes too long, uses too much
memory.
14 years ago
Ryan Dahl
44234e9cc7
Fix a few 'listening' race conditions
in
test-net-timeout
test-http-client-parse-error
14 years ago
Ryan Dahl
4adadc38f4
fix test-base64-bigfile for linux
14 years ago
Ryan Dahl
97255c2651
Fix test harness for Linux
Mostly just upgraded tools/test.py to the latest one that's in V8. But also
fixing the before and after hooks to preserve the test/tmp directory so that
running tests manually usually works.
14 years ago
isaacs
25b5bc01a6
A big base64 file encoding/decoding test
Originally written to try to track down this bug report:
http://permalink.gmane.org/gmane.comp.lang.javascript.nodejs/13924
As it turns out, it's showing a completely different kind of failure. When
the file is base64 encoded with the native program, then decoded with node,
it doesn't match the original. Something's fishy.
14 years ago
Micheil Smith
372a7c9a3e
Migrated from sys.p to console.dir
14 years ago
Micheil Smith
e38eb0c5a4
Soft migration of sys -> util, Removal of deprecated utils module.
14 years ago
Ryan Dahl
007881b648
No long have tcp module
14 years ago
Felix Geisendörfer
3cd09e7ba5
Stress test for http upload timeouts
This was meant to find a bug in setTimeout, but there doesn't seem to be
one. So this test can no help to prevent future regressions.
14 years ago
Ryan Dahl
7347fb3e2c
Make sure setInterval(cb, 0) loops infinitely
15 years ago
Herbert Vojčík
cf2b206a8e
More changes to tests so they really work under context module loader.
Plus, getting rid of test/common.js defining things in global.
15 years ago
Ryan Dahl
a8c2bb41af
Fix tests
15 years ago
Ryan Dahl
9395786d11
Fix race conditions in tests
15 years ago
Ryan Dahl
9fd5e3c89c
Update tests to work with module contexts
15 years ago
Ryan Dahl
5f30377bbc
Load modules in individual contexts
Add NODE_MODULE_CONTEXTS env var
Only one test was modified to check that this works. NEED to go through all
tests and modify them so that
NODE_MODULE_CONTEXTS=1 make test
passes.
15 years ago
Blake Mizerany
8c8534046c
fix whitespace errors
15 years ago
Ryan Dahl
ba792ea202
:%s/sys.puts/console.log/g
and there was much rejoicing
15 years ago
Ryan Dahl
cb79614f73
Don't encourage strange ideas about req race conditions
15 years ago
Micheil Smith
e0d30b545a
Renaming tcp tests to net tests
15 years ago
Ryan Dahl
14414f81f3
Soft deprecation of 'listening' event.
Add callback param to listen() instead
15 years ago
Ryan Dahl
67eeedd602
Disable test-signal-unregister.js as functionality doesn't exist yet
15 years ago