From 7e8c1c4f0be264671ab14d1f787f30425da4631c Mon Sep 17 00:00:00 2001 From: Malte Bauch <malte.bauch@stud.h-da.de> Date: Thu, 24 Feb 2022 14:47:20 +0100 Subject: [PATCH] fix test case wrong if clause --- nucleus/southbound_test.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/nucleus/southbound_test.go b/nucleus/southbound_test.go index a18cdc200..f483d02ad 100644 --- a/nucleus/southbound_test.go +++ b/nucleus/southbound_test.go @@ -166,8 +166,8 @@ func Test_unmarshal(t *testing.T) { } bytes := resp.Notification[0].Update[0].Val.GetJsonIetfVal() oc, err := NewSBI(spb.Type_TYPE_OPENCONFIG) - if (err != nil) != tt.wantErr { - t.Errorf("Unmarshal() error = %v, wantErr %v", err, tt.wantErr) + if err != nil { + t.Errorf("unmarshal() error = %v", err) return } -- GitLab