diff options
author | Harsh Shandilya <me@msfjarvis.dev> | 2022-06-04 14:41:52 +0530 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-06-04 09:11:52 +0000 |
commit | fee75104962548404ed2ffc4f6ef9c397b86683f (patch) | |
tree | 9a33007643184f72bcd98ab70d0cfc91e4e87f7e /crypto-pgpainless/src/test/kotlin | |
parent | ac94b88d870f6c589e051723cf95bfd04032949d (diff) |
Miscellaneous cleanups (#1934)
* build-logic: cleanups
* coroutine-utils-testing: cleanups
* coroutine-utils: cleanups
* crypto-common: cleanups
* crypto-pgpainless: cleanups
* format-common: cleanups
Diffstat (limited to 'crypto-pgpainless/src/test/kotlin')
-rw-r--r-- | crypto-pgpainless/src/test/kotlin/dev/msfjarvis/aps/crypto/PGPKeyManagerTest.kt | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/crypto-pgpainless/src/test/kotlin/dev/msfjarvis/aps/crypto/PGPKeyManagerTest.kt b/crypto-pgpainless/src/test/kotlin/dev/msfjarvis/aps/crypto/PGPKeyManagerTest.kt index cf33b53f..60436d3b 100644 --- a/crypto-pgpainless/src/test/kotlin/dev/msfjarvis/aps/crypto/PGPKeyManagerTest.kt +++ b/crypto-pgpainless/src/test/kotlin/dev/msfjarvis/aps/crypto/PGPKeyManagerTest.kt @@ -161,17 +161,17 @@ class PGPKeyManagerTest { @Test fun getAllKeys() = scope.runTest { - // TODO: Should we check for more than 1 keys? // Check if KeyManager returns no key val noKeyList = keyManager.getAllKeys().unwrap() assertEquals(0, noKeyList.size) // Add key using KeyManager keyManager.addKey(key).unwrap() + keyManager.addKey(PGPKey(getArmoredPrivateKeyWithMultipleIdentities())).unwrap() // Check if KeyManager returns one key val singleKeyList = keyManager.getAllKeys().unwrap() - assertEquals(1, singleKeyList.size) + assertEquals(2, singleKeyList.size) } @Test |