优化结构
This commit is contained in:
@@ -33,6 +33,14 @@ func TestResponseHelpers(t *testing.T) {
|
||||
}
|
||||
}
|
||||
|
||||
func TestSanitizeFailureMessageKeepsSafeConnectionSummary(t *testing.T) {
|
||||
for _, message := range []string{"Kafka 连接测试失败", "EMQX 连接测试失败", "RabbitMQ 连接测试失败"} {
|
||||
if got := sanitizeFailureMessage(message); got != message {
|
||||
t.Fatalf("sanitizeFailureMessage(%q) = %q", message, got)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
func TestSetCookieUsesRequestedName(t *testing.T) {
|
||||
gin.SetMode(gin.TestMode)
|
||||
r := gin.New()
|
||||
|
||||
Reference in New Issue
Block a user