WIP: Add tests for attachments (#116)

* Add tests for attachments

* Fix CI

* Use go 1.15 for mobile
This commit is contained in:
wussler 2021-03-08 17:59:03 +01:00 committed by GitHub
parent 72062c4925
commit 27efcb4627
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
12 changed files with 120 additions and 8 deletions

View file

@ -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())
}