mirror of
https://github.com/traefik/traefik.git
synced 2025-09-26 16:21:15 +02:00
fixes wrong actual on unit-test
This commit is contained in:
parent
47710c1385
commit
92abaa0d47
@ -217,7 +217,8 @@ func TestPathPrefixStrip(t *testing.T) {
|
||||
watchChan: watchChan,
|
||||
}
|
||||
provider := Kubernetes{disablePassHostHeaders: true}
|
||||
actual, err := provider.loadIngresses(client)
|
||||
actualConfig, err := provider.loadIngresses(client)
|
||||
actual := actualConfig.Frontends
|
||||
if err != nil {
|
||||
t.Fatalf("error %+v", err)
|
||||
}
|
||||
@ -235,7 +236,7 @@ func TestPathPrefixStrip(t *testing.T) {
|
||||
},
|
||||
},
|
||||
}
|
||||
actualJSON, _ := json.Marshal(actual.Frontends)
|
||||
actualJSON, _ := json.Marshal(actual)
|
||||
expectedJSON, _ := json.Marshal(expected)
|
||||
|
||||
if !reflect.DeepEqual(actual, expected) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user