feat: use AsyncLocalStorage to store request state #1344
Annotations
10 errors and 5 warnings
Run Test:
test/diagnostics_channel.test.ts#L75
TypeError: Cannot read properties of undefined (reading 'tracer')
❯ test/diagnostics_channel.test.ts:75:36
|
Run Test:
test/fetch.test.ts#L49
AssertionError: false == true
- Expected
+ Received
- true
+ false
❯ test/fetch.test.ts:49:5
|
Run Test:
test/fetch.test.ts#L91
AssertionError: false == true
- Expected
+ Received
- true
+ false
❯ test/fetch.test.ts:91:5
|
Run Test:
test/index.test.ts#L64
AssertionError: The expression evaluated to a falsy value:
it('should response set-cookie as an array string', async () => {
const response = await urllib.request(`${_url}set-two-cookie`);
assert.equal(response.status, 200);
assert(Array.isArray(response.headers['set-cookie']));
assert.equal(typeof response.headers['set-cookie'], 'object');
assert.deepEqual(response.headers['set-cookie'], [
'foo=bar; path=/',
'hello=world; path=/',
]);
assert.equal(response.headers['Set-Cookie'], undefined);
})
- Expected
+ Received
- true
+ false
❯ test/index.test.ts:64:7
|
Run Test:
test/index.test.ts#L237
AssertionError: Expected values to be strictly equal:
200 !== 400
- Expected
+ Received
- 400
+ 200
❯ test/index.test.ts:237:14
|
Run Test:
test/index.test.ts#L284
AssertionError: The input did not match the regular expression /mock response stream/. Input:
'{"method":"GET","url":"/foo.js","href":"http://localhost/foo.js","headers":{"host":"localhost","connection":"keep-alive","user-agent":"node-urllib/VERSION Node.js/18.20.5 (linux; x64)"},"requestBody":""}'
- Expected:
/mock response stream/
+ Received:
"{\"method\":\"GET\",\"url\":\"/foo.js\",\"href\":\"http://localhost/foo.js\",\"headers\":{\"host\":\"localhost\",\"connection\":\"keep-alive\",\"user-agent\":\"node-urllib/VERSION Node.js/18.20.5 (linux; x64)\"},\"requestBody\":\"\"}"
❯ test/index.test.ts:284:14
|
Run Test:
test/keep-alive-header.test.ts#L151
TypeError: Cannot read properties of undefined (reading 'connected')
❯ test/keep-alive-header.test.ts:151:60
|
Run Test:
test/options.digestAuth.test.ts#L36
AssertionError: Expected values to be strictly equal:
401 !== 200
- Expected
+ Received
- 200
+ 401
❯ test/options.digestAuth.test.ts:36:12
|
Run Test:
test/options.followRedirect.test.ts#L148
AssertionError: Expected values to be strictly equal:
+ actual - expected
+ 'http://localhost/redirect-full-301-to-url'
- 'http://localhost:34995/redirect-full-301-to-url'
Expected: "http://localhost:34995/redirect-full-301-to-url"
Received: "http://localhost/redirect-full-301-to-url"
❯ test/options.followRedirect.test.ts:148:12
|
Run Test
Process completed with exit code 1.
|
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636
|
Run Test:
test/HttpClient.test.ts#L38
it.only not permitted
|
Run Test:
test/options.timing.test.ts#L20
it.only not permitted
|
Run Lint:
test/HttpClient.test.ts#L38
it.only not permitted
|
Run Lint:
test/options.timing.test.ts#L20
it.only not permitted
|
Loading