Skip to content
This repository has been archived by the owner on Feb 16, 2023. It is now read-only.

Commit

Permalink
Fix test
Browse files Browse the repository at this point in the history
  • Loading branch information
jpcoenen committed Jun 4, 2020
1 parent 734d9c1 commit ff6ae7e
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions internals/gcp/kms_decrypter_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import (
"errors"
"testing"

"google.golang.org/api/cloudkms/v1"
"google.golang.org/genproto/googleapis/cloud/kms/v1"

"github.com/secrethub/secrethub-go/internals/assert"

Expand Down Expand Up @@ -44,10 +44,10 @@ func TestGCPDecrypter_Unwrap(t *testing.T) {
for name, tc := range cases {
t.Run(name, func(t *testing.T) {
decrypter := KMSDecrypter{
decryptFunc: func(name string, ciphertext string) (*cloudkms.DecryptResponse, error) {
assert.Equal(t, ciphertext, string(defaultCiphertext))
return &cloudkms.DecryptResponse{
Plaintext: tc.plaintext,
decryptFunc: func(name string, ciphertext []byte) (*kms.DecryptResponse, error) {
assert.Equal(t, ciphertext, defaultCiphertext)
return &kms.DecryptResponse{
Plaintext: []byte(tc.plaintext),
}, tc.decryptErr
},
}
Expand Down

0 comments on commit ff6ae7e

Please sign in to comment.