mirror of
https://github.com/coredns/coredns.git
synced 2025-11-12 23:12:17 -05:00
@@ -1,7 +1,6 @@
|
||||
package traffic
|
||||
|
||||
import (
|
||||
"encoding/json"
|
||||
"testing"
|
||||
|
||||
"github.com/caddyserver/caddy"
|
||||
@@ -14,17 +13,6 @@ func TestSetup(t *testing.T) {
|
||||
}
|
||||
}
|
||||
|
||||
func TestLBTxt(t *testing.T) {
|
||||
for _, txt := range []string{lbTXT} {
|
||||
if _, err := json.Marshal(txt); err != nil {
|
||||
t.Errorf("Failed to marshal grpc serverConfig: %s", err)
|
||||
}
|
||||
if len(txt) > 255 {
|
||||
t.Errorf("Too long grpc serverConfig (>255): %d", len(txt))
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
func TestParseTraffic(t *testing.T) {
|
||||
tests := []struct {
|
||||
input string
|
||||
|
||||
Reference in New Issue
Block a user