Skip to content

test: import WhoopProtocol in SleepFragmentedNightTests - #1986

Merged
ryanbr merged 1 commit into
mainfrom
fix-strandanalytics-import
Sep 8, 2026
Merged

ryanbr merged 1 commit into
mainfrom
fix-strandanalytics-import

Conversation

@ryanbr

@ryanbr ryanbr commented Sep 8, 2026

Copy link
Copy Markdown
Owner

The end-to-end fixture added in #1984 builds GravitySample and HRSample
values, which live in WhoopProtocol, not StrandAnalytics. The file imported
only StrandAnalytics, so test (StrandAnalytics) failed to compile with
"cannot find type 'GravitySample' in scope". The sibling fixture file this
was modelled on, SleepStagerActiveBridgeTests, carries the same import for
the same reason.

Swift cannot be compiled in the WSL dev environment, so this was invisible
until CI ran the package leg.

Restores test (StrandAnalytics), which is red on main.

The end-to-end fixture added in #1984 builds GravitySample and HRSample
values, which live in WhoopProtocol, not StrandAnalytics. The file imported
only StrandAnalytics, so test (StrandAnalytics) failed to compile with
"cannot find type 'GravitySample' in scope". The sibling fixture file this
was modelled on, SleepStagerActiveBridgeTests, carries the same import for
the same reason.

Swift cannot be compiled in the WSL dev environment, so this was invisible
until CI ran the package leg.
@ryanbr
ryanbr merged commit 451e092 into main Sep 8, 2026
15 checks passed
@ryanbr
ryanbr deleted the fix-strandanalytics-import branch September 8, 2026 00:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant