Skip to content

Commit 1775753

Browse files
authored
fix: Added @ignore to the tests (#676)
[no important files changed]
1 parent 2f8186b commit 1775753

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

exercises/practice/diffie-hellman/src/test/kotlin/DiffieHellmanTest.kt

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
import org.junit.Test
22
import java.math.BigInteger
3+
import kotlin.test.Ignore
34
import kotlin.test.assertEquals
45
import kotlin.test.assertNotEquals
56
import kotlin.test.assertTrue
@@ -19,6 +20,7 @@ class DiffieHellmanTest {
1920
* Due to the nature of randomness, there is always a chance that this test fails.
2021
* Be sure to check the actual generated values.
2122
*/
23+
@Ignore
2224
@Test
2325
fun `private key is random`() {
2426
val prime = 7919.toBigInteger()
@@ -28,6 +30,7 @@ class DiffieHellmanTest {
2830
assertNotEquals(privateKeyA, privateKeyB)
2931
}
3032

33+
@Ignore
3134
@Test
3235
fun `calculate public key using private key`() {
3336
val primeA = 23.toBigInteger()
@@ -39,6 +42,7 @@ class DiffieHellmanTest {
3942
}
4043

4144

45+
@Ignore
4246
@Test
4347
fun `calculate secret using other party's public key`() {
4448
val prime = 23.toBigInteger()
@@ -50,6 +54,7 @@ class DiffieHellmanTest {
5054
}
5155

5256

57+
@Ignore
5358
@Test
5459
fun `key exchange`() {
5560
val primeA = 23.toBigInteger()

0 commit comments

Comments
 (0)