Ciro Spaciari
76622e41d6
remove unnecessary check ( #2432 )
2023-03-19 20:09:13 -07:00
Ciro Spaciari
7aa297012b
add some extra abort checks into streams ( #2430 )
...
* add some checks to avoid UAF
* avoid multiple calls to finalize if endFromJS is called more than once
* fix no-op comment
* mark as requested_end on abort
* remove requested_end from abort
2023-03-19 19:42:45 -07:00
Jarred Sumner
9443cca1bb
Reduce number of module scopes created
2023-03-19 19:09:16 -07:00
Jarred Sumner
a83c5c996f
[bun test] Implement --rerun-each flag to run each test N times
2023-03-19 19:07:56 -07:00
Jarred Sumner
b053dffca7
Prevent undefined memory access
2023-03-19 19:06:52 -07:00
Jarred Sumner
cb1b881746
Remove -g
2023-03-19 18:11:38 -07:00
Jarred Sumner
9679cdb12c
Set -O2 and -fno-rtti
2023-03-19 18:08:46 -07:00
Jarred Sumner
9ce18245d1
Remove usages of port numbers in tests
2023-03-19 16:51:13 -07:00
Jarred Sumner
5a23d17620
Several bug fixes ( #2427 )
...
* Fix test
* Fix segfault when unexpected type is passed in `expect().toThrow`
* Fix issues with request constructor
* Don't bother cloning headers when its empty
* woops
* more tests
* fix incorrect test
* Make the fetch error messages better
* Update response.zig
* Fix test that failed on macOS
* Fix test
* Remove extra hash table lookups
* Support running dummy registry directly
cc @alexlamsl
* Update test
* Update test
* fixup
* Workaround crash in test runner
* Fixup test
* Fixup test
* Update os.test.js
---------
Co-authored-by: Jarred Sumner <709451+Jarred-Sumner@users.noreply.github.com >
2023-03-19 14:08:20 -07:00
Jarred Sumner
8f02ef8294
0 length body is a null stream
2023-03-18 18:03:05 -07:00
Jarred Sumner
e41e884747
Hanging abort test
2023-03-18 17:55:05 -07:00
Jarred Sumner
1b7423412a
Make this test more thorough
2023-03-18 16:58:15 -07:00
Jarred Sumner
41c4a66e4a
Update UWS
...
cc @cirospaciari
2023-03-18 16:58:04 -07:00
Jarred Sumner
7216bfe016
Fix out of bounds access
...
Repro'd in Buffer tests
2023-03-18 16:57:55 -07:00
Jarred Sumner
1c85e94977
Always clear timers in node test harness
2023-03-18 16:36:40 -07:00
Jarred Sumner
25097cd632
[node:net] Fix issue with listen callback firing before it's listening
2023-03-18 16:36:19 -07:00
Jarred Sumner
d9711c64eb
Make node-net tests less flaky
2023-03-18 16:35:49 -07:00
Jarred Sumner
96fcecdcc9
[fetch] Make the default body value null when unspecified
...
This is better aligned with the fetch spec
2023-03-18 16:15:21 -07:00
Jarred Sumner
12c4ed89e3
Fix crash when rendering error page and the server or network is slow
2023-03-18 15:53:19 -07:00
Kamil Ogórek
f1cfa5dfeb
docs: Use correct url in the 'Issues' link in README header ( #2420 )
2023-03-18 03:10:31 -07:00
Dylan Conway
dd9ebe9c50
💅
2023-03-18 00:57:38 -07:00
Dylan Conway
a9c41c67e6
Fix several bugs ( #2418 )
...
* utf16 codepoint with replacement character
* Fix test failure with `TextEncoder("ascii')`
* Add missing type
* Fix Response.prototype.bodyUsed and Request.prototype.bodyUsed
* Fix bug with scrypt error not clearing
* Update server.zig
* oopsie
2023-03-18 00:55:05 -07:00
Dylan Conway
1d4cc63154
Fix various fetch/response/request tests ( #2416 )
...
* fix most fetch tests, skip a few
* fastGet, toValueGC, and invalid init
* bigint unreachable, range error, log process as process
* remove extra fetch_headers
* remove js_type parameter, check isObject()
* throw invalid mime type error, use enum literal
* switch back to promise rejection
* RangeError pascal case
2023-03-17 17:14:39 -07:00
zhiyuan
c5f2b42649
Feat(test): add toMatch ( #2404 )
2023-03-17 03:49:41 -07:00
Ashcon Partovi
37293cb26a
Remove old Docker workflow
2023-03-16 15:51:54 -07:00
Ashcon Partovi
57255ad565
Remove test Dockerfile
2023-03-16 15:50:28 -07:00
Ashcon Partovi
2dd99a37fd
Organize Dockerfiles for official status
2023-03-16 15:49:41 -07:00
Dylan Conway
baf8787fa4
remove trailing comma
2023-03-15 22:06:28 -07:00
Dylan Conway
d5ef247b3b
Fix socket tests with connection errors ( #2403 )
...
* release pending activity with connection error handler
* unref poll_ref
2023-03-15 22:01:58 -07:00
Jarred Sumner
b66df90b49
Rename expectObjectTypeCount to expectMaxObjectTypeCount
2023-03-15 22:00:53 -07:00
zhiyuan
0befd9ad85
feat(expect): update toBeInstanceOf ( #2396 )
...
* feat: update instanceof binding
* fix: according to PR comments
2023-03-15 20:04:55 -07:00
Jarred Sumner
79a05d50ad
Make the test work in any timezone
2023-03-15 19:59:09 -07:00
Jarred Sumner
9a5f78fa3b
Fixes #2399
2023-03-15 19:18:56 -07:00
Alex Lam S.L
47865fe82a
fix gc-related flaky test failures ( #2402 )
2023-03-15 18:51:22 -07:00
Ashcon Partovi
480567a5af
Remove nested tests from harness
2023-03-15 17:45:24 -07:00
Ashcon Partovi
976ef92473
Improve reliability of generated tests
2023-03-15 17:34:23 -07:00
Jarred Sumner
abd34abf08
✅ some test matchers
2023-03-15 16:50:05 -07:00
Dylan Conway
1f811980c3
fix gc import from harness
2023-03-15 16:48:02 -07:00
Jarred Sumner
654ba5b671
Case sensitive
2023-03-15 16:47:40 -07:00
Jarred Sumner
babbfc6404
fix fixture
2023-03-15 16:47:08 -07:00
Jarred Sumner
86891a5d12
✂️
2023-03-15 16:43:32 -07:00
Jarred Sumner
9b321c3b06
Make this test more reliable
2023-03-15 16:41:23 -07:00
Jarred Sumner
cb5b08b22e
Fix broken import path in test
2023-03-15 15:39:38 -07:00
Dylan Conway
a4741f6fe1
add tsconfig and update path ( #2401 )
2023-03-15 15:18:31 -07:00
Ciro Spaciari
ac970146b4
allows Bun.serve to listen on IPV6 ( #2400 )
2023-03-15 14:30:31 -07:00
Alex Lam S.L
acd361855a
[install] sanitise against malformed bun.lockb ( #2397 )
...
* [install] sanitise against malformed `bun.lockb`
fixes #2392
* fix `prettier` checks in unrelated files
2023-03-15 08:49:52 -07:00
Dylan Conway
b6ec31ba4b
don't delete bun-snapshots
2023-03-14 18:33:10 -07:00
Dylan Conway
62acc096f5
test added snapshots in new process
2023-03-14 18:09:36 -07:00
Jarred Sumner
7baaf2065a
Update child_process-node.test.js
2023-03-14 18:07:58 -07:00
Dylan Conway
0f434f9457
generate jest snapshots manually
2023-03-14 17:33:32 -07:00