diff --git a/Realm/ObjectServerTests/RLMObjectServerTests.mm b/Realm/ObjectServerTests/RLMObjectServerTests.mm index 59db6ef71b..12e0c4f874 100644 --- a/Realm/ObjectServerTests/RLMObjectServerTests.mm +++ b/Realm/ObjectServerTests/RLMObjectServerTests.mm @@ -538,7 +538,10 @@ - (void)testSyncErrorHandlerErrorDomain { [self manuallySetAccessTokenForUser:user value:[self badAccessToken]]; [self manuallySetRefreshTokenForUser:user value:[self badAccessToken]]; - [self openRealmForPartitionValue:NSStringFromSelector(_cmd) user:user]; + [self immediatelyOpenRealmForPartitionValue:NSStringFromSelector(_cmd) + user:user + encryptionKey:nil + stopPolicy:RLMSyncStopPolicyAfterChangesUploaded]; [self waitForExpectationsWithTimeout:10.0 handler:nil]; }