fix error logic #74
integration.yml
on: push
Matrix: test
slack-on-failure
3s
Annotations
6 errors
test/unit/mock-http.test.ts > Mocked API tests > should time out createAssembly with a custom timeout:
test/unit/mock-http.test.ts#L30
AssertionError: expected error to be instance of TimeoutError
- Expected:
[Function TimeoutError]
+ Received:
[ApiError: API error]
❯ test/unit/mock-http.test.ts:30:5
|
test/unit/mock-http.test.ts > Mocked API tests > should time out other requests with a custom timeout:
test/unit/mock-http.test.ts#L38
AssertionError: expected error to be instance of TimeoutError
- Expected:
[Function TimeoutError]
+ Received:
[ApiError: API error]
❯ test/unit/mock-http.test.ts:38:5
|
test/unit/mock-http.test.ts > Mocked API tests > should fail on error with error code:
test/unit/mock-http.test.ts#L97
AssertionError: expected error to match asymmetric matcher
- Expected
+ Received
- ObjectContaining {
- "code": "INVALID_FILE_META_DATA",
- "message": "API error (HTTP 400) INVALID_FILE_META_DATA: Invalid file metadata",
- "rawMessage": "Invalid file metadata",
- }
+ [ApiError: API error]
❯ test/unit/mock-http.test.ts:97:5
|
test/unit/mock-http.test.ts > Mocked API tests > should return informative errors:
test/unit/mock-http.test.ts#L117
AssertionError: expected error to match asymmetric matcher
- Expected
+ Received
- ObjectContaining {
- "assemblyId": "123",
- "message": "API error (HTTP 400) INVALID_FILE_META_DATA: Invalid file metadata https://api2-oltu.transloadit.com/assemblies/foo",
- }
+ [ApiError: API error]
❯ test/unit/mock-http.test.ts:117:5
|
test/unit/mock-http.test.ts > Mocked API tests > should not retry on RATE_LIMIT_REACHED if maxRetries is 0:
test/unit/mock-http.test.ts#L198
AssertionError: expected error to match asymmetric matcher
- Expected
+ Received
- ObjectContaining {
- "code": "RATE_LIMIT_REACHED",
- "message": "API error (HTTP 429) RATE_LIMIT_REACHED: Request limit reached",
- }
+ [ApiError: API error]
❯ test/unit/mock-http.test.ts:198:5
|
test (18)
Process completed with exit code 1.
|