diff options
author | Satoshi Fujii <fujii-satoshi@jp.fujitsu.com> | 2020-11-02 07:45:57 +0000 |
---|---|---|
committer | Satoshi Fujii <fujii-satoshi@jp.fujitsu.com> | 2020-11-02 07:45:57 +0000 |
commit | e97a00243313385c1532d184b4ed1b8de7a1a518 (patch) | |
tree | a90dd2731dbe570d7dd56fe8056c6bba56a284d1 /src/kube2msb/kube2msb_test.go | |
parent | 66c00e4df2bcb8f6142d6f5573e4db3f429cfeb4 (diff) |
Fix registration failure due to improper handling braceshonolulu
mergeIP function did not handle braces '{' properly
and JSON structure was broken by the improper string replacement.
This change removes mergeIP func and IP address is passed directly
to Register and DeRegister functions.
Issue-ID: MSB-534
Signed-off-by: Satoshi Fujii <fujii-satoshi@jp.fujitsu.com>
Change-Id: Icc8a1f00fba5248218d45e4d9476042c5c331004
Diffstat (limited to 'src/kube2msb/kube2msb_test.go')
-rw-r--r-- | src/kube2msb/kube2msb_test.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/kube2msb/kube2msb_test.go b/src/kube2msb/kube2msb_test.go index a71c035..fe49c2b 100644 --- a/src/kube2msb/kube2msb_test.go +++ b/src/kube2msb/kube2msb_test.go @@ -85,7 +85,7 @@ func TestSendServiceWork(t *testing.T) { got := <-kubeWorkQueue if got.Action != c { - t.Errorf("sendServiceWork(%action, queue, service) got %gotAction", c, got.Action) + t.Errorf("sendServiceWork(%v, queue, service) got %v", c, got.Action) } } } @@ -106,7 +106,7 @@ func TestSendPodWork(t *testing.T) { got := <-kubeWorkQueue if got.Action != c { - t.Errorf("sendPodWork(%action, queue, service) got %gotAction", c, got.Action) + t.Errorf("sendPodWork(%v, queue, service) got %v", c, got.Action) } } } |