Commit 452b2c4
authored
fix: Flake unit tests (#459)
**Requirements**
- [ ] I have added test coverage for new or changed functionality
- [ ] I have followed the repository's [pull request submission
guidelines](../blob/v9/CONTRIBUTING.md#submitting-pull-requests)
- [ ] I have validated my changes against all supported platform
versions
**Related issues**
Provide links to any issues in this repository or elsewhere relating to
this pull request.
**Describe the solution you've provided**
Fix flake unit tests of Throttler
**Describe alternatives you've considered**
Provide a clear and concise description of any alternative solutions or
features you've considered.
**Additional context**
Add any other context about the pull request here.
<!-- CURSOR_SUMMARY -->
---
> [!NOTE]
> Raises minimum platform versions and introduces `TimeoutExecutor`,
used by `LDClient.identify` and `LDClient.start` for single-fire
timeouts; updates tests and docs accordingly.
>
> - **Core SDK**:
> - Add `ServiceObjects/TimeoutExecutor.swift` and use it in
`LDClient.identify(..., timeout:)` and `LDClient.start(...,
startWaitSeconds:)` to ensure single, deterministic timeout completions.
> - **Tests**:
> - Add `TimeoutExecutorSpec` and wire into Xcode project.
> - Tweak `ThrottlerSpec` to remove flaky expectations.
> - **Build/Platforms**:
> - Bump Swift tools to `5.5` (`Package.swift`).
> - Raise deployment targets: `iOS 13`, `watchOS 6`, `tvOS 13`, `macOS
12` (SPM, CocoaPods, Xcode project settings).
> - **Docs**:
> - Update `CHANGELOG.md` and `README.md` to reflect new platform
minimums and toolchain version.
>
> <sup>Written by [Cursor
Bugbot](https://cursor.com/dashboard?tab=bugbot) for commit
94866d8. This will update automatically
on new commits. Configure
[here](https://cursor.com/dashboard?tab=bugbot).</sup>
<!-- /CURSOR_SUMMARY -->File tree
1 file changed
+0
-2
lines changed- LaunchDarkly/LaunchDarklyTests/ServiceObjects
1 file changed
+0
-2
lines changedLines changed: 0 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
105 | 105 | | |
106 | 106 | | |
107 | 107 | | |
108 | | - | |
109 | 108 | | |
110 | 109 | | |
111 | 110 | | |
| |||
165 | 164 | | |
166 | 165 | | |
167 | 166 | | |
168 | | - | |
169 | 167 | | |
170 | 168 | | |
171 | 169 | | |
| |||
0 commit comments