From 324c46279b1602882a9f27fd200d8a9ab3c5f4ef Mon Sep 17 00:00:00 2001 From: Adrien Delorme Date: Mon, 27 Aug 2018 16:26:09 +0200 Subject: [PATCH] up test --- builder/openstack/step_key_pair_test.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/builder/openstack/step_key_pair_test.go b/builder/openstack/step_key_pair_test.go index 891ad3cdc..c204eec03 100644 --- a/builder/openstack/step_key_pair_test.go +++ b/builder/openstack/step_key_pair_test.go @@ -82,7 +82,7 @@ func TestBerToDer(t *testing.T) { } // Test - a DER encoded key comes back unchanged. - newKey := berToDer(der_encoded_key, ui) + newKey := string(berToDer([]byte(der_encoded_key), ui)) if newKey != der_encoded_key { t.Errorf("Trying to convert a DER encoded key should return the same key.") } @@ -91,7 +91,7 @@ func TestBerToDer(t *testing.T) { } // Test - a BER encoded key should be converted to DER. - newKey = berToDer(ber_encoded_key, ui) + newKey = string(berToDer([]byte(ber_encoded_key), ui)) _, err = ssh.ParsePrivateKey([]byte(newKey)) if err != nil { t.Errorf("Trying to convert a BER encoded key should return a DER encoded key parsable by Go.")