From 33046b2672579e76caf6ed1449a48951ab677228 Mon Sep 17 00:00:00 2001 From: Mariano Cano Date: Wed, 10 Aug 2022 16:34:07 -0700 Subject: [PATCH] Remove debug format options in tests --- sshutil/certificate_test.go | 2 +- x509util/certificate_test.go | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/sshutil/certificate_test.go b/sshutil/certificate_test.go index 90bcf14e..6bb09e6f 100644 --- a/sshutil/certificate_test.go +++ b/sshutil/certificate_test.go @@ -204,7 +204,7 @@ func TestNewCertificate(t *testing.T) { return } if !reflect.DeepEqual(got, tt.want) { - t.Errorf("NewCertificate() = \n%+v, want \n%+v", got, tt.want) + t.Errorf("NewCertificate() = %v, want %v", got, tt.want) } }) } diff --git a/x509util/certificate_test.go b/x509util/certificate_test.go index 6d41a647..3eddb8c7 100644 --- a/x509util/certificate_test.go +++ b/x509util/certificate_test.go @@ -276,7 +276,7 @@ func TestNewCertificate(t *testing.T) { t.Run(tt.name, func(t *testing.T) { got, err := NewCertificate(tt.args.cr, tt.args.opts...) if (err != nil) != tt.wantErr { - t.Errorf("NewCertificate() error = %+v, wantErr %v", err, tt.wantErr) + t.Errorf("NewCertificate() error = %v, wantErr %v", err, tt.wantErr) return } if !reflect.DeepEqual(got, tt.want) { @@ -412,7 +412,7 @@ func TestCertificate_GetCertificate(t *testing.T) { PublicKey: tt.fields.PublicKey, } if got := c.GetCertificate(); !reflect.DeepEqual(got, tt.want) { - t.Errorf("Certificate.GetCertificate() = \n%+v, want \n%+v", got, tt.want) + t.Errorf("Certificate.GetCertificate() = %v, want %v", got, tt.want) } }) }