Skip to content
Snippets Groups Projects
Commit 47052145 authored by Fabian Seidl's avatar Fabian Seidl
Browse files

fix: integration tests should no longer fail

parent 5f91ed87
Branches
No related tags found
1 merge request!238Stfaseid http refactor
Pipeline #96725 passed
This commit is part of merge request !238. Comments created here will be created in the context of that merge request.
...@@ -136,7 +136,7 @@ func TestGnmi_SetInvalidIntegration(t *testing.T) { ...@@ -136,7 +136,7 @@ func TestGnmi_SetInvalidIntegration(t *testing.T) {
for _, tt := range tests { for _, tt := range tests {
t.Run(tt.name, func(t *testing.T) { t.Run(tt.name, func(t *testing.T) {
oc, err := nucleus.NewSBI(spb.Type_TYPE_OPENCONFIG) oc, err := nucleus.NewSBI(spb.Type_TYPE_OPENCONFIG)
if (err != nil) != tt.wantErr { if err != nil {
t.Errorf("NewSBI() error = %v", err) t.Errorf("NewSBI() error = %v", err)
} }
g, err := nucleus.NewTransport(tt.fields.opt, oc) g, err := nucleus.NewTransport(tt.fields.opt, oc)
...@@ -302,8 +302,8 @@ func TestGnmi_GetIntegration(t *testing.T) { ...@@ -302,8 +302,8 @@ func TestGnmi_GetIntegration(t *testing.T) {
for _, tt := range tests { for _, tt := range tests {
t.Run(tt.name, func(t *testing.T) { t.Run(tt.name, func(t *testing.T) {
oc, err := nucleus.NewSBI(spb.Type_TYPE_OPENCONFIG) oc, err := nucleus.NewSBI(spb.Type_TYPE_OPENCONFIG)
if (err != nil) != tt.wantErr { if err != nil {
t.Errorf("Get() error = %v, wantErr %v", err, tt.wantErr) t.Errorf("Get() error = %v", err)
return return
} }
g, err := nucleus.NewTransport(tt.fields.opt, oc) g, err := nucleus.NewTransport(tt.fields.opt, oc)
...@@ -417,8 +417,8 @@ func TestGnmi_SubscribeIntegration(t *testing.T) { ...@@ -417,8 +417,8 @@ func TestGnmi_SubscribeIntegration(t *testing.T) {
t.Run(tt.name, func(t *testing.T) { t.Run(tt.name, func(t *testing.T) {
var wantErr = tt.wantErr var wantErr = tt.wantErr
oc, err := nucleus.NewSBI(spb.Type_TYPE_OPENCONFIG) oc, err := nucleus.NewSBI(spb.Type_TYPE_OPENCONFIG)
if (err != nil) != tt.wantErr { if err != nil {
t.Errorf("Subscribe() error = %v, wantErr %v", err, tt.wantErr) t.Errorf("Subscribe() error = %v", err)
return return
} }
g, err := nucleus.NewTransport(tt.fields.opt, oc) g, err := nucleus.NewTransport(tt.fields.opt, oc)
...@@ -500,8 +500,8 @@ func TestGnmi_CapabilitiesIntegration(t *testing.T) { ...@@ -500,8 +500,8 @@ func TestGnmi_CapabilitiesIntegration(t *testing.T) {
for _, tt := range tests { for _, tt := range tests {
t.Run(tt.name, func(t *testing.T) { t.Run(tt.name, func(t *testing.T) {
oc, err := nucleus.NewSBI(spb.Type_TYPE_OPENCONFIG) oc, err := nucleus.NewSBI(spb.Type_TYPE_OPENCONFIG)
if (err != nil) != tt.wantErr { if err != nil {
t.Errorf("Capabilities() error = %v, wantErr %v", err, tt.wantErr) t.Errorf("Capabilities() error = %v", err)
return return
} }
tr, err := nucleus.NewTransport(tt.fields.opt, oc) tr, err := nucleus.NewTransport(tt.fields.opt, oc)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment