max furman 8 年之前
父节点
当前提交
828798418c
共有 1 个文件被更改,包括 4 次插入 和 4 次删除
  1. 4 4
      api/api_test.go

+ 4 - 4
api/api_test.go

@@ -691,11 +691,11 @@ func Test_caHandler_JWKSetByIssuer(t *testing.T) {
 	}
 
 	p := []*provisioner.Provisioner{
-		&provisioner.Provisioner{
+		{
 			Issuer: "p1",
 			Key:    &key,
 		},
-		&provisioner.Provisioner{
+		{
 			Issuer: "p2",
 			Key:    &key,
 		},
@@ -767,13 +767,13 @@ func Test_caHandler_Provisioners(t *testing.T) {
 	}
 
 	p := []*provisioner.Provisioner{
-		&provisioner.Provisioner{
+		{
 			Type:         "JWK",
 			Issuer:       "max",
 			EncryptedKey: "abc",
 			Key:          &key,
 		},
-		&provisioner.Provisioner{
+		{
 			Type:         "JWK",
 			Issuer:       "mariano",
 			EncryptedKey: "def",