Skip to content

Stop setting the removed bridge key in RCTBlobManagerTests - #59605

Merged
javache merged 1 commit into
react:mainfrom
lazerg:fix/issue-59597-blob-manager-tests-bridge
Oct 29, 2026
Merged

javache merged 1 commit into
react:mainfrom
lazerg:fix/issue-59597-blob-manager-tests-bridge

Conversation

@lazerg

@lazerg lazerg commented Oct 29, 2026

Copy link
Copy Markdown
Contributor

Summary:

#59250 removed @synthesize bridge = _bridge; from RCTBlobManager.mm, so the module no longer has a bridge setter or ivar. RCTBlobManagerTests still called [_module setValue:nil forKey:@"bridge"] in setUp, which now throws NSUnknownKeyException and fails all five tests before they run. The module never reads bridge, so the line can just go.

Fixes #59597

Changelog:

[INTERNAL] [FIXED] - Fix RCTBlobManagerTests setUp after the bridge property was removed

Test Plan:

I don't have Xcode on this machine, so I couldn't run the RNTester XCTests. I checked the behavior with a small Foundation program: a class that adopts a protocol with a readonly bridge property but doesn't synthesize it throws NSUnknownKeyException on setValue:nil forKey:@"bridge", and the same class with @synthesize doesn't. The rest of setUp (initialize, store:withId:) doesn't depend on bridge.

@meta-cla meta-cla Bot added the CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. label Oct 29, 2026
@javache
javache merged commit 13c29f0 into react:main Oct 29, 2026
104 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

RNTester's RCTBlobManagerTests fail on main: setUp sets the bridge key that #59250 removed

2 participants