diff --git a/nucleus/southbound_test.go b/nucleus/southbound_test.go index a18cdc20055292e9f5efdb8c1f4d50b539d542a2..f483d02ade589fa514ee40587137dfefd712f3e7 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 }