Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .release-please-manifest.json
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
{
".": "1.4.8"
".": "1.4.9"
}
13 changes: 13 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,18 @@
# Changelog

## 1.4.9 (2026-02-20)

Full Changelog: [v1.4.8...v1.4.9](https://github.com/OneBusAway/go-sdk/compare/v1.4.8...v1.4.9)

### Bug Fixes

* allow canceling a request while it is waiting to retry ([a90dd4e](https://github.com/OneBusAway/go-sdk/commit/a90dd4e9deb309c8193c802bae576a418e567347))


### Chores

* update mock server docs ([bf2cab0](https://github.com/OneBusAway/go-sdk/commit/bf2cab013c1eb2f67c753b3c5c535fec081c4af7))

## 1.4.8 (2026-01-17)

Full Changelog: [v1.4.7...v1.4.8](https://github.com/OneBusAway/go-sdk/compare/v1.4.7...v1.4.8)
Expand Down
3 changes: 1 addition & 2 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -49,8 +49,7 @@ $ go mod edit -replace github.com/OneBusAway/go-sdk=/path/to/go-sdk
Most tests require you to [set up a mock server](https://github.com/stoplightio/prism) against the OpenAPI spec to run the tests.

```sh
# you will need npm installed
$ npx prism mock path/to/your/openapi.yml
$ ./scripts/mock
```

```sh
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ Or to pin the version:
<!-- x-release-please-start-version -->

```sh
go get -u 'github.com/OneBusAway/go-sdk@v1.4.8'
go get -u 'github.com/OneBusAway/go-sdk@v1.4.9'
```

<!-- x-release-please-end -->
Expand Down
6 changes: 5 additions & 1 deletion internal/requestconfig/requestconfig.go
Original file line number Diff line number Diff line change
Expand Up @@ -470,7 +470,11 @@ func (cfg *RequestConfig) Execute() (err error) {
res.Body.Close()
}

time.Sleep(retryDelay(res, retryCount))
select {
case <-ctx.Done():
return ctx.Err()
case <-time.After(retryDelay(res, retryCount)):
}
}

// Save *http.Response if it is requested to, even if there was an error making the request. This is
Expand Down
4 changes: 2 additions & 2 deletions internal/testutil/testutil.go
Original file line number Diff line number Diff line change
Expand Up @@ -16,10 +16,10 @@ func CheckTestServer(t *testing.T, url string) bool {
t.Fatalf("strconv.ParseBool(os.LookupEnv(%s)) failed: %s", SKIP_MOCK_TESTS, err)
}
if skip {
t.Skip("The test will not run without a mock Prism server running against your OpenAPI spec")
t.Skip("The test will not run without a mock server running against your OpenAPI spec")
return false
}
t.Errorf("The test will not run without a mock Prism server running against your OpenAPI spec. You can set the environment variable %s to true to skip running any tests that require the mock server", SKIP_MOCK_TESTS)
t.Errorf("The test will not run without a mock server running against your OpenAPI spec. You can set the environment variable %s to true to skip running any tests that require the mock server", SKIP_MOCK_TESTS)
return false
}
}
Expand Down
2 changes: 1 addition & 1 deletion internal/version.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@

package internal

const PackageVersion = "1.4.8" // x-release-please-version
const PackageVersion = "1.4.9" // x-release-please-version