Skip to content

Commit

Permalink
Remove debug format options in tests
Browse files Browse the repository at this point in the history
  • Loading branch information
maraino committed Aug 10, 2022
1 parent 8de4757 commit 33046b2
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion sshutil/certificate_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
}
})
}
Expand Down
4 changes: 2 additions & 2 deletions x509util/certificate_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down Expand Up @@ -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)
}
})
}
Expand Down

0 comments on commit 33046b2

Please sign in to comment.