Skip to content

Commit

Permalink
fixing unit tests
Browse files Browse the repository at this point in the history
  • Loading branch information
Oded Betzalel authored and Oded Betzalel committed Mar 6, 2017
1 parent 20031d8 commit cd0f28b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions BluemixAppIDTests/ConfigTests.swift
Original file line number Diff line number Diff line change
Expand Up @@ -21,11 +21,11 @@ public class ConfigTests: XCTestCase {
AppID.sharedInstance = AppID()
// no region and tenant
let appid = AppID.sharedInstance
XCTAssertEqual("https://mobileclientaccess", Config.getServerUrl(appId: appid))
XCTAssertEqual("https://appid-oauth", Config.getServerUrl(appId: appid))

// with region and tenant
appid.initialize(tenantId: "sometenant", bluemixRegion: ".region")
XCTAssertEqual("https://mobileclientaccess.region/oauth/v3/sometenant", Config.getServerUrl(appId: appid))
XCTAssertEqual("https://appid-oauth.region/oauth/v3/sometenant", Config.getServerUrl(appId: appid))

// with overrideserverhost
AppID.overrideServerHost = "somehost/"
Expand Down

0 comments on commit cd0f28b

Please sign in to comment.