Skip to content

fix(test): stop shadowing request() inside #require in ChatMediaViewerTests - #980

Merged
bmc08gt merged 1 commit into
mainfrom
fix/media-viewer-test-shadow
Oct 6, 2026
Merged

bmc08gt merged 1 commit into
mainfrom
fix/media-viewer-test-shadow

Conversation

@bmc08gt

@bmc08gt bmc08gt commented Oct 6, 2026

Copy link
Copy Markdown
Collaborator

The "App vectors (build)" job still fails after #979, now on FlipcashTests/Chat/ChatMediaViewerTests.swift:48 and :72: cannot call value of non-function type 'ChatMediaViewerRequest'. The UploadPolicyTests error stopped the build before it reached this file.

let request = try #require(request(...)) declares a local named request, and the macro expansion resolves request(...) to that local instead of the helper. The local is renamed viewer.

…rTests

`let request = try #require(request(...))` declares a local that the
#require macro expansion resolves instead of the helper, so the test
build failed with "cannot call value of non-function type
'ChatMediaViewerRequest'". Name the local viewer.
@bmc08gt bmc08gt self-assigned this Oct 6, 2026
@bmc08gt
bmc08gt merged commit 410bb5f into main Oct 6, 2026
3 checks passed
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