Skip to content

Commit

Permalink
test(jvm): cause jvm kotlin tests to pass
Browse files Browse the repository at this point in the history
  • Loading branch information
coriolinus committed Nov 22, 2024
1 parent 889feaa commit f99601c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 9 deletions.
7 changes: 0 additions & 7 deletions crypto-ffi/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -29,16 +29,9 @@ tls_codec.workspace = true
async-lock.workspace = true
log.workspace = true
log-reload.workspace = true
<<<<<<< HEAD
serde_json.workspace = true
=======
proteus-wasm = { workspace = true, optional = true }
core-crypto-keystore = { workspace = true, optional = true}
<<<<<<< HEAD
>>>>>>> 75bea838 (feat: refactor WASM error types)
=======
serde_json.workspace = true
>>>>>>> 9da395e8 (feat: support logs with a context of key/value pairs)

# see https://github.com/RustCrypto/hashes/issues/404
[target.'cfg(not(any(target_arch = "aarch64", target_arch = "x86_64", target_arch = "x86")))'.dependencies]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@
package com.wire.crypto.client

import com.wire.crypto.CoreCryptoException
import com.wire.crypto.MlsException
import java.nio.file.Files
import kotlin.test.Test
import kotlin.test.assertEquals
Expand Down Expand Up @@ -68,11 +69,11 @@ class MLSTest {
cc.transaction { ctx -> context = ctx }

val expectedException =
assertFailsWith<CoreCryptoException.CryptoException> {
assertFailsWith<CoreCryptoException.Mls> {
context!!.mlsInit(aliceId.toClientId())
}

assertIs<CryptoError.InvalidContext>(expectedException.error)
assertIs<MlsException.Other>(expectedException.v1)
}

@Test
Expand Down

0 comments on commit f99601c

Please sign in to comment.