WIP: Add tests for attachments (#116)
* Add tests for attachments * Fix CI * Use go 1.15 for mobile
This commit is contained in:
parent
72062c4925
commit
27efcb4627
12 changed files with 120 additions and 8 deletions
|
|
@ -235,7 +235,8 @@ func TestGenerateKeyWithPrimes(t *testing.T) {
|
|||
t.Fatal("Cannot generate RSA key with primes:", err)
|
||||
}
|
||||
|
||||
pk := staticRsaKey.entity.PrivateKey.PrivateKey.(*rsa.PrivateKey)
|
||||
pk, ok := staticRsaKey.entity.PrivateKey.PrivateKey.(*rsa.PrivateKey)
|
||||
assert.True(t, ok)
|
||||
assert.Exactly(t, prime1, pk.Primes[0].Bytes())
|
||||
assert.Exactly(t, prime2, pk.Primes[1].Bytes())
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue