From 92abaa0d47b01b2a824c6c7411a81bc36e9664d8 Mon Sep 17 00:00:00 2001 From: AlmogBaku Date: Mon, 16 May 2016 01:24:23 +0300 Subject: [PATCH] fixes wrong actual on unit-test --- provider/kubernetes_test.go | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/provider/kubernetes_test.go b/provider/kubernetes_test.go index 8a8f08176..b7cf6ae44 100644 --- a/provider/kubernetes_test.go +++ b/provider/kubernetes_test.go @@ -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) {