diff --git a/.release-please-manifest.json b/.release-please-manifest.json index d2d60a3..1332969 100644 --- a/.release-please-manifest.json +++ b/.release-please-manifest.json @@ -1,3 +1,3 @@ { - ".": "0.24.0" + ".": "0.0.1" } \ No newline at end of file diff --git a/CHANGELOG.md b/CHANGELOG.md index eb88f23..8426894 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,133 @@ # Changelog +## 0.0.1 (2024-02-15) + +Full Changelog: [...abc-v0.0.1](https://github.com/lithic-com/lithic-go/compare/...abc-v0.0.1) + +### ⚠ BREAKING CHANGES + +* **api:** change account holder creation response, new settlement detail type ([#207](https://github.com/lithic-com/lithic-go/issues/207)) +* **api:** remove `post /webhooks/account_holders` endpoint ([#133](https://github.com/lithic-com/lithic-go/issues/133)) +* **api:** change `key` to `secret` ([#102](https://github.com/lithic-com/lithic-go/issues/102)) +* **api:** remove previous_auth_rule_tokens from auth rules ([#64](https://github.com/lithic-com/lithic-go/issues/64)) +* **types:** singularize array item types ([#63](https://github.com/lithic-com/lithic-go/issues/63)) +* rename some response types and remove unnecessary types from paginated endpoints ([#60](https://github.com/lithic-com/lithic-go/issues/60)) +* **api:** add dispute evidence filename ([#46](https://github.com/lithic-com/lithic-go/issues/46)) +* **api:** replace `TransactionToken` param in favour of `TransactionTokens` ([#23](https://github.com/lithic-com/lithic-go/issues/23)) +* rename `.JSON.Extras` -> `.JSON.ExtraFields` ([#9](https://github.com/lithic-com/lithic-go/issues/9)) +* rename `field.Field` -> `param.Field` +* make JSON structs private, rename Metadata->Field, improve docs +* remove _ in DisputeResolutionReasonNoDisputeRights_3Ds +* **api:** rename _3dsVersion to ThreeDSVersion +* **api:** add tokenization decisioning endpoints and remove unused funding sources API + +### Features + +* add `Bool` param field helper ([#86](https://github.com/lithic-com/lithic-go/issues/86)) ([847e53d](https://github.com/lithic-com/lithic-go/commit/847e53d771cbe02110590b0c4bf609d5212945d0)) +* add new services and misc api updates, fix identifier namespacing ([1fb606d](https://github.com/lithic-com/lithic-go/commit/1fb606de6797976367ee177b9aea89c9642f5cd0)) +* allOf models now have toXxx methods to access the separate allOf models ([#100](https://github.com/lithic-com/lithic-go/issues/100)) ([3018520](https://github.com/lithic-com/lithic-go/commit/3018520eb3c3d720cb15cb905de6c3e1e31241e9)) +* **api:** add `account_token` and `card_program_token` to `Card` ([#214](https://github.com/lithic-com/lithic-go/issues/214)) ([eda30c7](https://github.com/lithic-com/lithic-go/commit/eda30c714cc89232612bd60834cf5add13aa3bfd)) +* **api:** add `get spend_limits` endpoints to `cards` and `accounts` ([#180](https://github.com/lithic-com/lithic-go/issues/180)) ([43b5826](https://github.com/lithic-com/lithic-go/commit/43b5826f888d9d70641a8d1006e9d543a855dea2)) +* **api:** add `state` query param for cards ([#67](https://github.com/lithic-com/lithic-go/issues/67)) ([6175a18](https://github.com/lithic-com/lithic-go/commit/6175a183cbbfead69e15623069fe9e7b68cc013b)) +* **api:** add `with_content` param ([#81](https://github.com/lithic-com/lithic-go/issues/81)) ([004cf68](https://github.com/lithic-com/lithic-go/commit/004cf68be7b1368a8288e72a41556a57fe42614f)) +* **api:** add AUTH_STREAM_ACCESS to responder endpoints ([#154](https://github.com/lithic-com/lithic-go/issues/154)) ([cc29b8e](https://github.com/lithic-com/lithic-go/commit/cc29b8e139348ca3c72f49f6b86c07e26f3da23a)) +* **api:** add card reissue shipping options ([#99](https://github.com/lithic-com/lithic-go/issues/99)) ([8aaa9d3](https://github.com/lithic-com/lithic-go/commit/8aaa9d34312ff43d6e96630b4584f93c67e2af63)) +* **api:** add card renew endpoint ([#198](https://github.com/lithic-com/lithic-go/issues/198)) ([8becb6a](https://github.com/lithic-com/lithic-go/commit/8becb6ad4d8624f40850af509eafbdf343616132)) +* **api:** add CardProgram and DigitalCardArt resources ([#159](https://github.com/lithic-com/lithic-go/issues/159)) ([34a0990](https://github.com/lithic-com/lithic-go/commit/34a0990819068767136d67e7156b5b338bc75228)) +* **api:** add carrier property to card create and reissue params ([#95](https://github.com/lithic-com/lithic-go/issues/95)) ([89f43dc](https://github.com/lithic-com/lithic-go/commit/89f43dcb4bae8fa556fe378742631555b7c8c71a)) +* **api:** add digital wallet tokenization result event type ([#70](https://github.com/lithic-com/lithic-go/issues/70)) ([37a2a2d](https://github.com/lithic-com/lithic-go/commit/37a2a2d76b3ce7e3f44c3a102fb6786eead73f37)) +* **api:** add dispute evidence filename ([#46](https://github.com/lithic-com/lithic-go/issues/46)) ([78f70af](https://github.com/lithic-com/lithic-go/commit/78f70afe9e7d54d5c1640787109fca90b7afbf5c)) +* **api:** add download_url property to dispute evidence ([90fe998](https://github.com/lithic-com/lithic-go/commit/90fe99806180ed20886a3679562076e12cde9da7)) +* **api:** add event message attempts ([#78](https://github.com/lithic-com/lithic-go/issues/78)) ([2e70c1b](https://github.com/lithic-com/lithic-go/commit/2e70c1b62a32fabe67adbb40c8d8b956e0f522bd)) +* **api:** add more enum members to event types ([#73](https://github.com/lithic-com/lithic-go/issues/73)) ([7154eaa](https://github.com/lithic-com/lithic-go/commit/7154eaa9483bdf5735193b1d53651e2474bd30db)) +* **api:** add payment and external bank accounts resource ([#84](https://github.com/lithic-com/lithic-go/issues/84)) ([98a36d5](https://github.com/lithic-com/lithic-go/commit/98a36d508e45f08767d480a53a6f5440f602a9f7)) +* **api:** add search_by_pan endpoint ([#208](https://github.com/lithic-com/lithic-go/issues/208)) ([9110cd6](https://github.com/lithic-com/lithic-go/commit/9110cd69d4c787365634255764955e1ec14f3bc8)) +* **api:** add Simulate Return Payment endpoint ([#119](https://github.com/lithic-com/lithic-go/issues/119)) ([8777146](https://github.com/lithic-com/lithic-go/commit/8777146422fdc9046d7415b3f0ab69d4cef7e13a)) +* **api:** add simulation endpoints, event types, fix transfer request AuthRule ([#129](https://github.com/lithic-com/lithic-go/issues/129)) ([5bd720d](https://github.com/lithic-com/lithic-go/commit/5bd720de5eff6d3c929a7ad600defa3441169756)) +* **api:** add support for new `transaction_tokens` query param ([#14](https://github.com/lithic-com/lithic-go/issues/14)) ([d5fa50f](https://github.com/lithic-com/lithic-go/commit/d5fa50f257793794b44e4469b1ad1129eff8ba53)) +* **api:** add tokenization decisioning endpoints and remove unused funding sources API ([4b89f0a](https://github.com/lithic-com/lithic-go/commit/4b89f0abb56862921f377fa80c5dad98012df25f)) +* **api:** add tokenizations.simulate and correct typo'd enum ([#117](https://github.com/lithic-com/lithic-go/issues/117)) ([0978f3d](https://github.com/lithic-com/lithic-go/commit/0978f3d7571fffd19209592983b9dd790356a51d)) +* **api:** add user defined id ([#114](https://github.com/lithic-com/lithic-go/issues/114)) ([c54b617](https://github.com/lithic-com/lithic-go/commit/c54b61798224933766d4d52ab19d741a63508176)) +* **api:** add verification_attempts response property ([#164](https://github.com/lithic-com/lithic-go/issues/164)) ([ace7ec5](https://github.com/lithic-com/lithic-go/commit/ace7ec518a52d8e28c430b6a61346c323a602349)) +* **api:** add verification_failed_reason ([#153](https://github.com/lithic-com/lithic-go/issues/153)) ([340de4f](https://github.com/lithic-com/lithic-go/commit/340de4f3941cecd375c539e3db0b349b0f4ce98c)) +* **api:** change `key` to `secret` ([#102](https://github.com/lithic-com/lithic-go/issues/102)) ([66a2271](https://github.com/lithic-com/lithic-go/commit/66a227152f0bb1db938c256db1764114137ae550)) +* **api:** change account holder creation response, new settlement detail type ([#207](https://github.com/lithic-com/lithic-go/issues/207)) ([cdb3d37](https://github.com/lithic-com/lithic-go/commit/cdb3d3776d1b89149518744f36dc47a13b4478cb)) +* **api:** more detailed `post /disputes/{dispute_token}/evidences` response ([24e6b12](https://github.com/lithic-com/lithic-go/commit/24e6b12346b4337e6091cd80cdd7b089f1f7e45d)) +* **api:** no longer require `website_url` property on KYB object ([#76](https://github.com/lithic-com/lithic-go/issues/76)) ([929bb45](https://github.com/lithic-com/lithic-go/commit/929bb45ec6dc98c63b8f09de59688f40f19cee7f)) +* **api:** remove /auth_stream enrollment endpoints ([#191](https://github.com/lithic-com/lithic-go/issues/191)) ([a6fe54b](https://github.com/lithic-com/lithic-go/commit/a6fe54bb1177b8be3df877b81f690a6fc2736506)) +* **api:** remove `CLOSED` account enum and update docstrings ([#184](https://github.com/lithic-com/lithic-go/issues/184)) ([516573e](https://github.com/lithic-com/lithic-go/commit/516573e82f43d880fb6f192b7d9a6cfb4e9ada13)) +* **api:** rename `token` and `type` to `financial_account_token` and `financial_account_type` ([#188](https://github.com/lithic-com/lithic-go/issues/188)) ([f3e4c9d](https://github.com/lithic-com/lithic-go/commit/f3e4c9dcc1c7610bbae3cf65e4416d279529a44e)) +* **api:** update docs ([#26](https://github.com/lithic-com/lithic-go/issues/26)) ([acede1c](https://github.com/lithic-com/lithic-go/commit/acede1ceb6164d14c7889ef58ae248216ba15301)) +* **api:** updates ([#12](https://github.com/lithic-com/lithic-go/issues/12)) ([c8fbf7d](https://github.com/lithic-com/lithic-go/commit/c8fbf7de0006f048fcde7853ab5177cc94bb5174)) +* **api:** updates ([#141](https://github.com/lithic-com/lithic-go/issues/141)) ([20a2549](https://github.com/lithic-com/lithic-go/commit/20a25491b78d841e573f3a5e83af8cf70ed48281)) +* **api:** updates ([#152](https://github.com/lithic-com/lithic-go/issues/152)) ([e8a87a8](https://github.com/lithic-com/lithic-go/commit/e8a87a8ef5549c66767f461ee30d0597981c682b)) +* **api:** updates ([#172](https://github.com/lithic-com/lithic-go/issues/172)) ([5bc56b2](https://github.com/lithic-com/lithic-go/commit/5bc56b2fea4177423d475163f826e4c30adb0b47)) +* **api:** updates ([#176](https://github.com/lithic-com/lithic-go/issues/176)) ([1c838cf](https://github.com/lithic-com/lithic-go/commit/1c838cf71b7e672472c9b3134dbd1b39891bab57)) +* **api:** updates ([#201](https://github.com/lithic-com/lithic-go/issues/201)) ([d2f48dd](https://github.com/lithic-com/lithic-go/commit/d2f48dd676b146c0aa3b0781b3089e5649889dad)) +* **api:** updates ([#218](https://github.com/lithic-com/lithic-go/issues/218)) ([d0b991a](https://github.com/lithic-com/lithic-go/commit/d0b991ad600d5b2db01824b0fe7a2440c5194d6d)) +* **api:** updates ([#90](https://github.com/lithic-com/lithic-go/issues/90)) ([7411302](https://github.com/lithic-com/lithic-go/commit/741130245a9146e443a76c9d5e9ce5aa1a885ef1)) +* better errors ([b4ca8ea](https://github.com/lithic-com/lithic-go/commit/b4ca8ea415652dad20cbc347b2af640c437425c7)) +* **client:** adjust retry behavior ([#155](https://github.com/lithic-com/lithic-go/issues/155)) ([5bb534c](https://github.com/lithic-com/lithic-go/commit/5bb534c751ea22f34cd8ecb73c67b521766ba23e)) +* **client:** allow binary returns ([#165](https://github.com/lithic-com/lithic-go/issues/165)) ([e9af1fc](https://github.com/lithic-com/lithic-go/commit/e9af1fc6426a69195bab7c3f51e8f643dc04044d)) +* **docs:** include version references in the README ([7c0f82a](https://github.com/lithic-com/lithic-go/commit/7c0f82ac58ef76d934da75f28dfbf2351915e4c9)) +* fixes tests where an array has to have unique enum values ([#115](https://github.com/lithic-com/lithic-go/issues/115)) ([0f0b35e](https://github.com/lithic-com/lithic-go/commit/0f0b35ebab02716ae2d22586c2d1bd7dbac16ce0)) +* generate `api.md` file ([#57](https://github.com/lithic-com/lithic-go/issues/57)) ([308263b](https://github.com/lithic-com/lithic-go/commit/308263b05e16a3643f6cfb7d69d97cfd2369337c)) +* **github:** include a devcontainer setup ([#163](https://github.com/lithic-com/lithic-go/issues/163)) ([4a4728e](https://github.com/lithic-com/lithic-go/commit/4a4728e1d3deeebfa756c9bb3e5541daee9b9a2e)) +* implement bikesheds ([373d44b](https://github.com/lithic-com/lithic-go/commit/373d44b8decab27a8747b062c1d4a8ee927d6a85)) +* implement improved auto-pagination ([ed424a2](https://github.com/lithic-com/lithic-go/commit/ed424a24b71dc0986e486efb153ae801ffcfdb18)) +* implement middleware ([#40](https://github.com/lithic-com/lithic-go/issues/40)) ([2772808](https://github.com/lithic-com/lithic-go/commit/277280844c3ee4cc9627e87f3d5370be6167f94a)) +* implement unions ([b6729aa](https://github.com/lithic-com/lithic-go/commit/b6729aaced38a0ee2130559afdcc26647002bc2a)) +* implement unions ([b6729aa](https://github.com/lithic-com/lithic-go/commit/b6729aaced38a0ee2130559afdcc26647002bc2a)) +* improve retry behavior on context deadline ([#132](https://github.com/lithic-com/lithic-go/issues/132)) ([a5bb026](https://github.com/lithic-com/lithic-go/commit/a5bb0262bffa1eca10eb6bcda0cd382fcdceeb71)) +* **internal:** fallback to json serialization if no serialization methods are defined ([#187](https://github.com/lithic-com/lithic-go/issues/187)) ([37d6376](https://github.com/lithic-com/lithic-go/commit/37d6376c00990e56ca243853427b933460776772)) +* lift fields helpers to main class ([30fa1b7](https://github.com/lithic-com/lithic-go/commit/30fa1b74e6ad8ed8a044e3bdd15417a8b8ee3bdb)) +* make tests give better error message on missing prism server ([#36](https://github.com/lithic-com/lithic-go/issues/36)) ([73d293e](https://github.com/lithic-com/lithic-go/commit/73d293e34cc30c76dc993f9c844a9bfea69b5534)) +* remove idempotency headers ([#213](https://github.com/lithic-com/lithic-go/issues/213)) ([e116629](https://github.com/lithic-com/lithic-go/commit/e116629288d52406f0925d0d9930020d91cab0e7)) +* respect `x-should-retry` header ([#45](https://github.com/lithic-com/lithic-go/issues/45)) ([875dd50](https://github.com/lithic-com/lithic-go/commit/875dd5072eb0574aa499a3fb32d1b136c42b9bfc)) +* retry on 408 Request Timeout ([#125](https://github.com/lithic-com/lithic-go/issues/125)) ([c9258c8](https://github.com/lithic-com/lithic-go/commit/c9258c8bcefa0689e5bf9ac461bf33e5057ba8c2)) +* send package version in X-Stainless-Package-Version ([bbccf72](https://github.com/lithic-com/lithic-go/commit/bbccf72e0785419c000cf1cd9e3e12cbcef4721e)) + + +### Bug Fixes + +* **event > payload** type is now any object instead of unknown ([d4c760d](https://github.com/lithic-com/lithic-go/commit/d4c760d271df2ff6b7a7d92612f96a5509d767db)) +* add missing properties to AuthRule ([6bc291b](https://github.com/lithic-com/lithic-go/commit/6bc291b19a3216eb4507c1cd2e97aa92c1f03c36)) +* adjust typo of 'descisioning' to 'decisioning' ([#91](https://github.com/lithic-com/lithic-go/issues/91)) ([a8a36a7](https://github.com/lithic-com/lithic-go/commit/a8a36a7df2f8955f819bcabd75a4911975536622)) +* **api:** correct type for other fees details ([#169](https://github.com/lithic-com/lithic-go/issues/169)) ([4e7c3b9](https://github.com/lithic-com/lithic-go/commit/4e7c3b9c2cebc4c15795e56f74cd10a37b533b2b)) +* **api:** rename _3dsVersion to ThreeDSVersion ([b7c9008](https://github.com/lithic-com/lithic-go/commit/b7c90081cc51cc41dcff660fe03acbfda8d325ba)) +* change unknown type generation to `interface{}` ([01976c3](https://github.com/lithic-com/lithic-go/commit/01976c34f76cf4725fcf72073def8ad2eddb094a)) +* **client:** correctly serialise array query params ([#16](https://github.com/lithic-com/lithic-go/issues/16)) ([ad3a4b2](https://github.com/lithic-com/lithic-go/commit/ad3a4b2ed433f0aa68ce2e95193c2003d0dc81ae)) +* **client:** correctly set multipart form data boundary ([#97](https://github.com/lithic-com/lithic-go/issues/97)) ([5785e31](https://github.com/lithic-com/lithic-go/commit/5785e31de9b183ed55763f4b0d790e94d502ce4e)) +* **core:** add null check to prevent segfault when canceling context ([#120](https://github.com/lithic-com/lithic-go/issues/120)) ([4121517](https://github.com/lithic-com/lithic-go/commit/4121517be26c432e95cf7ae8576cdcfaaef3fdd1)) +* **core:** improve retry behavior and related docs ([#126](https://github.com/lithic-com/lithic-go/issues/126)) ([4f7e1e2](https://github.com/lithic-com/lithic-go/commit/4f7e1e29e919dd478dae3f8d8f1f4f4836ba44ab)) +* error that can occur during pagination when there are zero items in the response ([a49d3e1](https://github.com/lithic-com/lithic-go/commit/a49d3e19edff9b6ccc8e4df02c8a077ea8619661)) +* error that can occur during pagination when there are zero items in the response ([a49d3e1](https://github.com/lithic-com/lithic-go/commit/a49d3e19edff9b6ccc8e4df02c8a077ea8619661)) +* make options.WithHeader utils case-insensitive ([#170](https://github.com/lithic-com/lithic-go/issues/170)) ([7aec517](https://github.com/lithic-com/lithic-go/commit/7aec517d5d8cf66c8513ad7bea09ad4f1f8e1fe8)) +* pagination return non-nil on error ([b7d9576](https://github.com/lithic-com/lithic-go/commit/b7d957691767802bbc145c3e79f28c164678236e)) +* pagination return non-nil on error ([b7d9576](https://github.com/lithic-com/lithic-go/commit/b7d957691767802bbc145c3e79f28c164678236e)) +* parse date-time strings more leniently ([#210](https://github.com/lithic-com/lithic-go/issues/210)) ([61e89a5](https://github.com/lithic-com/lithic-go/commit/61e89a57458da3b869f3d04236122fcde535fef3)) +* prevent index out of range bug during auto-pagination ([#139](https://github.com/lithic-com/lithic-go/issues/139)) ([6d14a69](https://github.com/lithic-com/lithic-go/commit/6d14a69c060f1d7c028275ba96db61a5357cc130)) +* remove _ in DisputeResolutionReasonNoDisputeRights_3Ds ([0356df0](https://github.com/lithic-com/lithic-go/commit/0356df02df957ff6afdf3e070f80df0df2da38d2)) +* segfault when getting next page if request has no body ([c02a2fd](https://github.com/lithic-com/lithic-go/commit/c02a2fdba60552233a87ba485bd9885d8837d581)) +* segfault when getting next page if request has no body ([c02a2fd](https://github.com/lithic-com/lithic-go/commit/c02a2fdba60552233a87ba485bd9885d8837d581)) +* segfault when getting next page if request has no body ([3e71bef](https://github.com/lithic-com/lithic-go/commit/3e71bef4b8cce4b4e82d1ac135a595ea1bf68a46)) +* stop sending default idempotency headers with GET requests ([#179](https://github.com/lithic-com/lithic-go/issues/179)) ([c153b25](https://github.com/lithic-com/lithic-go/commit/c153b25b48d926ed098d48c66ffa1fbe44fe0a8d)) +* **test:** avoid test failures when SKIP_MOCK_TESTS is not set ([#204](https://github.com/lithic-com/lithic-go/issues/204)) ([c31c20a](https://github.com/lithic-com/lithic-go/commit/c31c20a9bdd574c71ee1641f916504bfc3884786)) +* update outdate docs in README ([f37232f](https://github.com/lithic-com/lithic-go/commit/f37232f1e65677a778e19d9d6bb2663382209b6c)) +* **webhooks:** correct parsing of timestamp header ([#6](https://github.com/lithic-com/lithic-go/issues/6)) ([a52ac0a](https://github.com/lithic-com/lithic-go/commit/a52ac0ad7f99f954f88b5927f18ab2de9bc77ff9)), closes [#2](https://github.com/lithic-com/lithic-go/issues/2) + + +### Code Refactoring + +* **api:** remove `post /webhooks/account_holders` endpoint ([#133](https://github.com/lithic-com/lithic-go/issues/133)) ([9b3062d](https://github.com/lithic-com/lithic-go/commit/9b3062d4a2464d05bf8f40e2a7ccc2cffac7c1e2)) +* **api:** remove previous_auth_rule_tokens from auth rules ([#64](https://github.com/lithic-com/lithic-go/issues/64)) ([4a81426](https://github.com/lithic-com/lithic-go/commit/4a814263872defd55597162dcc7500d437f2b27b)) +* **api:** replace `TransactionToken` param in favour of `TransactionTokens` ([#23](https://github.com/lithic-com/lithic-go/issues/23)) ([ee26919](https://github.com/lithic-com/lithic-go/commit/ee2691988d3efe2bdf6c9bbe91029d297a8559ee)) +* make JSON structs private, rename Metadata->Field, improve docs ([f6e7936](https://github.com/lithic-com/lithic-go/commit/f6e793680152e9deb9abdd52eaade3e7c7020664)) +* rename `.JSON.Extras` -> `.JSON.ExtraFields` ([#9](https://github.com/lithic-com/lithic-go/issues/9)) ([4366932](https://github.com/lithic-com/lithic-go/commit/4366932344970e5bf8899cfd7ffba14c42d2382c)) +* rename `field.Field` -> `param.Field` ([97d7533](https://github.com/lithic-com/lithic-go/commit/97d75334d985df2b775414580568f6d9a854e2a5)) +* rename some response types and remove unnecessary types from paginated endpoints ([#60](https://github.com/lithic-com/lithic-go/issues/60)) ([7ada707](https://github.com/lithic-com/lithic-go/commit/7ada707cb5eb0365f7ae71ca3cefd47da9d85bcf)) +* **types:** singularize array item types ([#63](https://github.com/lithic-com/lithic-go/issues/63)) ([ac26936](https://github.com/lithic-com/lithic-go/commit/ac269367dee47d42267f26d10497deb4499f9d1c)) + ## 0.24.0 (2024-02-08) Full Changelog: [v0.23.0...v0.24.0](https://github.com/lithic-com/lithic-go/compare/v0.23.0...v0.24.0) diff --git a/client_test.go b/client_test.go index 55e621a..a640565 100644 --- a/client_test.go +++ b/client_test.go @@ -150,8 +150,8 @@ func TestContextDeadline(t *testing.T) { case <-testTimeout: t.Fatal("client didn't finish in time") case <-testDone: - if diff := time.Since(deadline); diff < -20*time.Millisecond || 20*time.Millisecond < diff { - t.Fatalf("client did not return within 20ms of context deadline, got %s", diff) + if diff := time.Since(deadline); diff < -30*time.Millisecond || 30*time.Millisecond < diff { + t.Fatalf("client did not return within 30ms of context deadline, got %s", diff) } } } diff --git a/scripts/check-release-environment b/scripts/check-release-environment index fff9a52..1e951e9 100644 --- a/scripts/check-release-environment +++ b/scripts/check-release-environment @@ -2,9 +2,9 @@ errors=() -len=${#errors[@]} +lenErrors=${#errors[@]} -if [[ len -gt 0 ]]; then +if [[ lenErrors -gt 0 ]]; then echo -e "Found the following errors in the release environment:\n" for error in "${errors[@]}"; do