Skip to content

Commit d31bc46

Browse files
authored
Merge pull request #19265 from wordpress-mobile/rollback-to-legacy-context
Rollback to `LegacyContextFactory`
2 parents 438ae13 + 8a5eff2 commit d31bc46

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

WordPress/Classes/Utility/ContextManager.m

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ - (instancetype)initWithModelName:(NSString *)modelName storeURL:(NSURL *)storeU
5050
self = [super init];
5151
if (self) {
5252
if (factory == nil) {
53-
factory = [ContainerContextFactory class];
53+
factory = [LegacyContextFactory class];
5454
}
5555

5656
NSParameterAssert([modelName isEqualToString:ContextManagerModelNameCurrent] || [modelName hasPrefix:@"WordPress "]);

WordPress/WordPressTest/ContextManagerTests.swift

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -176,6 +176,7 @@ class ContextManagerTests: XCTestCase {
176176
// Discard the username change that's made above
177177
contextManager.mainContext.reset()
178178

179+
XCTExpectFailure("Known issue: the mainContext is saved along with the `ContextManager.save` functions")
179180
expect(try findFirstUser()?.username) == "First User"
180181
}
181182

0 commit comments

Comments
 (0)