Skip to content

Commit

Permalink
Fix compilation
Browse files Browse the repository at this point in the history
  • Loading branch information
tgoyne committed Sep 15, 2020
1 parent 0744118 commit d25427c
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 10 deletions.
12 changes: 6 additions & 6 deletions Realm/ObjectServerTests/SwiftObjectServerTests.swift
Original file line number Diff line number Diff line change
Expand Up @@ -2048,7 +2048,7 @@ class CombineObjectServerTests: SwiftSyncTestCase {
var cancellable = Set<AnyCancellable>()

let registerUserEx = expectation(description: "Register user")
app.emailPasswordAuth().registerEmail(email, password: password)
app.emailPasswordAuth().registerUser(email: email, password: password)
.sink(receiveCompletion: { result in
if case .failure(_) = result {
XCTFail("Should register")
Expand Down Expand Up @@ -2126,7 +2126,7 @@ class CombineObjectServerTests: SwiftSyncTestCase {
let password = randomString(10)

let registerUserEx = expectation(description: "Register user")
app.emailPasswordAuth().registerEmail(email, password: password)
app.emailPasswordAuth().registerUser(email: email, password: password)
.sink(receiveCompletion: { result in
if case .failure(_) = result {
XCTFail("Should register")
Expand Down Expand Up @@ -2158,7 +2158,7 @@ class CombineObjectServerTests: SwiftSyncTestCase {
var cancellable = Set<AnyCancellable>()

let registerUserEx = expectation(description: "Register user")
app.emailPasswordAuth().registerEmail(email, password: password)
app.emailPasswordAuth().registerUser(email: email, password: password)
.sink(receiveCompletion: { result in
if case .failure(_) = result {
XCTFail("Should register")
Expand Down Expand Up @@ -2775,7 +2775,7 @@ class CombineObjectServerTests: SwiftSyncTestCase {
var cancellable = Set<AnyCancellable>()

let regEx = expectation(description: "Should register")
app.emailPasswordAuth().registerEmail(email, password: password)
app.emailPasswordAuth().registerUser(email: email, password: password)
.sink(receiveCompletion: { result in
if case .failure(_) = result {
XCTFail("Should register")
Expand Down Expand Up @@ -2843,7 +2843,7 @@ class CombineObjectServerTests: SwiftSyncTestCase {
let password = randomString(10)

let registerUserEx = expectation(description: "Register user")
app.emailPasswordAuth().registerEmail(email, password: password)
app.emailPasswordAuth().registerUser(email: email, password: password)
.sink(receiveCompletion: { _ in },
receiveValue: { _ in registerUserEx.fulfill() })
.store(in: &cancellable)
Expand Down Expand Up @@ -2945,7 +2945,7 @@ class CombineObjectServerTests: SwiftSyncTestCase {
let password = randomString(10)

let registerUserEx = expectation(description: "Register user")
app.emailPasswordAuth().registerEmail(email, password: password)
app.emailPasswordAuth().registerUser(email: email, password: password)
.sink(receiveCompletion: { _ in },
receiveValue: { _ in registerUserEx.fulfill() })
.store(in: &cancellable)
Expand Down
4 changes: 2 additions & 2 deletions RealmSwift/App.swift
Original file line number Diff line number Diff line change
Expand Up @@ -123,9 +123,9 @@ public extension EmailPasswordAuth {
@param password The password that the user created for the new username/password identity.
@returns A publisher that eventually return `Result.success` or `Error`.
*/
func registerEmail(_ email: String, password: String) -> Future<Void, Error> {
func registerUser(email: String, password: String) -> Future<Void, Error> {
return Future<Void, Error> { promise in
self.registerEmail(email, password: password) { error in
self.registerUser(email: email, password: password) { error in
if let error = error {
promise(.failure(error))
} else {
Expand Down
4 changes: 2 additions & 2 deletions RealmSwift/Decimal128.swift
Original file line number Diff line number Diff line change
Expand Up @@ -85,12 +85,12 @@ public final class Decimal128: RLMDecimal128, Decodable {
}

/// The mininum value for Decimal128
public static var min: Self {
public static var min: Decimal128 {
__minimumDecimalNumber as! Self
}

/// The maximum value for Decimal128
public static var max: Self {
public static var max: Decimal128 {
__maximumDecimalNumber as! Self
}
}
Expand Down

0 comments on commit d25427c

Please sign in to comment.