Skip to content

Commit 2e45e07

Browse files
committed
Fix test compilation
1 parent 4fd8ff1 commit 2e45e07

File tree

5 files changed

+9
-7
lines changed

5 files changed

+9
-7
lines changed

MatrixSDKTests/Crypto/CryptoMachine/Device+Stub.swift

+2-1
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,8 @@ extension Device {
4141
isBlocked: isBlocked,
4242
locallyTrusted: locallyTrusted,
4343
crossSigningTrusted: crossSigningTrusted,
44-
firstTimeSeenTs: 0
44+
firstTimeSeenTs: 0,
45+
dehydrated: false
4546
)
4647
}
4748
}

MatrixSDKTests/Crypto/CryptoMachine/MXCryptoProtocolStubs.swift

+2-1
Original file line numberDiff line numberDiff line change
@@ -143,7 +143,8 @@ class CryptoCrossSigningStub: CryptoIdentityStub, MXCryptoCrossSigning {
143143
locallyTrusted: device.locallyTrusted,
144144
// Modify cross signing trusted
145145
crossSigningTrusted: true,
146-
firstTimeSeenTs: 0
146+
firstTimeSeenTs: 0,
147+
dehydrated: false
147148
)
148149
}
149150

MatrixSDKTests/Crypto/Migration/Data/MXCryptoMigrationStoreUnitTests.swift

+3-3
Original file line numberDiff line numberDiff line change
@@ -141,8 +141,8 @@ class MXCryptoMigrationStoreUnitTests: XCTestCase {
141141
XCTAssertEqual(sessions[0].pickle, pickle)
142142
XCTAssertEqual(sessions[0].senderKey, "XYZ")
143143
XCTAssertFalse(sessions[0].createdUsingFallbackKey)
144-
XCTAssertEqual(sessions[0].creationTime, "123")
145-
XCTAssertEqual(sessions[0].lastUseTime, "123")
144+
XCTAssertEqual(sessions[0].creationTime, 123)
145+
XCTAssertEqual(sessions[0].lastUseTime, 123)
146146
}
147147

148148
func test_extractsMultipleSessionsInBatches() throws {
@@ -235,7 +235,7 @@ class MXCryptoMigrationStoreUnitTests: XCTestCase {
235235
func test_extractsPickeKey() throws {
236236
let pickleKey = "some key".data(using: .ascii)!
237237
let key = try extractData(pickleKey: pickleKey).pickleKey
238-
XCTAssertEqual(key, [UInt8](pickleKey))
238+
XCTAssertEqual(key, pickleKey)
239239
}
240240

241241
func test_extractsCrossSigning() throws {

MatrixSDKTests/Crypto/Verification/Transactions/QRCode/QrCodeStub.swift

+1-1
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ import Foundation
1818

1919
import MatrixSDKCrypto
2020

21-
struct QrCodeStub: QrCodeProtocol {
21+
class QrCodeStub: QrCodeProtocol {
2222
private let _otherUserId: String
2323
private let _otherDeviceId: String
2424
private let _flowId: String

MatrixSDKTests/Crypto/Verification/Transactions/SAS/SasStub.swift

+1-1
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ import Foundation
1818

1919
import MatrixSDKCrypto
2020

21-
struct SasStub: SasProtocol {
21+
class SasStub: SasProtocol {
2222

2323
private let _otherUserId: String
2424
private let _otherDeviceId: String

0 commit comments

Comments
 (0)