Skip to content

Commit

Permalink
print config instead of error if test fails
Browse files Browse the repository at this point in the history
  • Loading branch information
izolight committed Jun 2, 2023
1 parent 0c7066a commit ecc0574
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions initca/initca_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -213,7 +213,7 @@ func TestInvalidCAConfig(t *testing.T) {

_, _, _, err := New(req)
if err == nil {
t.Fatal("InitCA with bad CAConfig should fail:", err)
t.Fatalf("InitCA with bad CAConfig should fail: %v", invalidCAConfig)
}
}
func TestInvalidCryptoParams(t *testing.T) {
Expand All @@ -236,7 +236,7 @@ func TestInvalidCryptoParams(t *testing.T) {
}
_, _, _, err := New(req)
if err == nil {
t.Fatal("InitCA with bad params should fail:", err)
t.Fatalf("InitCA with bad CAConfig should fail: %v", invalidCAConfig)
}

if !strings.Contains(err.Error(), `"code":2400`) {
Expand Down

0 comments on commit ecc0574

Please sign in to comment.