Skip to content

Commit

Permalink
GH-3096 Fix fragile test
Browse files Browse the repository at this point in the history
  • Loading branch information
DmitryBespalov committed Aug 21, 2023
1 parent 5a334ca commit 07936d3
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,8 @@ struct AddOwnerRequestParameters {
var safeAddress: Address
var ownerAddress: Address

func link() -> String {
var url = App.configuration.services.webAppURL
func link(base: URL = App.configuration.services.webAppURL) -> String {
var url = base
.appendingPathComponent("addOwner")

let result: String
Expand Down
2 changes: 1 addition & 1 deletion MultisigTests/Logic/AddOwnerRequestValidatorTests.swift
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ class AddOwnerRequestValidatorTests: XCTestCase {
chain: .mainnetChain(),
safeAddress: "0x71592E6Cbe7779D480C1D029e70904041F8f602A",
ownerAddress: "0x8e6A5aDb2B88257A3DAc7A76A7B4EcaCdA090b66"
).link()
).link(base: AddOwnerRequestValidator.webAppURL)

XCTAssertEqual(str, "https://\(domain)/addOwner?safe=eth:0x71592E6Cbe7779D480C1D029e70904041F8f602A&address=0x8e6A5aDb2B88257A3DAc7A76A7B4EcaCdA090b66")
}
Expand Down

0 comments on commit 07936d3

Please sign in to comment.