Skip to content

Commit b12eab4

Browse files
committed
[FIX] Flaky tests
1 parent f690d62 commit b12eab4

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

web3sTests/Client/EthereumClientTests.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,7 @@ class EthereumClientTests: XCTestCase {
116116
func testEthSendRawTransaction() async {
117117
do {
118118
let gasPrice = try await client?.eth_gasPrice()
119-
let tx = EthereumTransaction(from: nil, to: "0x3c1bd6b420448cf16a389c8b0115ccb3660bb854", value: BigUInt(1600000), data: nil, nonce: 2, gasPrice: gasPrice ?? BigUInt(9000000), gasLimit: BigUInt(500000), chainId: EthereumNetwork.goerli.intValue)
119+
let tx = EthereumTransaction(from: nil, to: "0x3c1bd6b420448cf16a389c8b0115ccb3660bb854", value: BigUInt(1), data: nil, nonce: 2, gasPrice: gasPrice ?? BigUInt(9000000), gasLimit: BigUInt(30000), chainId: EthereumNetwork.goerli.intValue)
120120

121121
let txHash = try await client?.eth_sendRawTransaction(tx, withAccount: account!)
122122
XCTAssertNotNil(txHash, "No tx hash, ensure key is valid in TestConfig.swift")

web3sTests/ENS/ENSOffchainTests.swift

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ class ENSOffchainTests: XCTestCase {
6060
ens: "resolver.eth",
6161
mode: .allowOffchainLookup
6262
)
63-
XCTAssertEqual(EthereumAddress("0x342cf18d3e41de491aa1a3067574c849ada6a2ad"), ens)
63+
XCTAssertEqual(EthereumAddress("0xd7a4f6473f32ac2af804b3686ae8f1932bc35750"), ens)
6464
} catch {
6565
XCTFail("Expected ens but failed \(error).")
6666
}
@@ -104,7 +104,7 @@ class ENSOffchainTests: XCTestCase {
104104
ens: "resolver.eth",
105105
mode: .allowOffchainLookup
106106
)
107-
XCTAssertEqual(EthereumAddress("0x342cf18d3e41de491aa1a3067574c849ada6a2ad"), ens)
107+
XCTAssertEqual(EthereumAddress("0xd7a4f6473f32ac2af804b3686ae8f1932bc35750"), ens)
108108
} catch {
109109
XCTFail("Expected ens but failed \(error).")
110110
}
@@ -139,7 +139,7 @@ class ENSOffchainTests: XCTestCase {
139139
ens: "resolver.eth",
140140
mode: .allowOffchainLookup
141141
)
142-
XCTAssertEqual(EthereumAddress("0x342cf18d3e41de491aa1a3067574c849ada6a2ad"), ens)
142+
XCTAssertEqual(EthereumAddress("0xd7a4f6473f32ac2af804b3686ae8f1932bc35750"), ens)
143143
} catch {
144144
XCTFail("Expected ens but failed \(error).")
145145
}

0 commit comments

Comments
 (0)