Skip to content
Snippets Groups Projects
Commit 61c2ec13 authored by Malte Bauch's avatar Malte Bauch
Browse files

added missing device uuid fields for tests

parent 41744be8
No related branches found
No related tags found
2 merge requests!116Resolve "Transport Tests",!90Develop
Pipeline #65987 passed with warnings
...@@ -36,6 +36,7 @@ func testSetupPnd() { ...@@ -36,6 +36,7 @@ func testSetupPnd() {
func mockDevice() Device { func mockDevice() Device {
return Device{ return Device{
Uuid: mdid,
GoStruct: nil, GoStruct: nil,
SBI: &OpenConfig{}, SBI: &OpenConfig{},
Transport: &mocks.Transport{}, Transport: &mocks.Transport{},
...@@ -375,6 +376,7 @@ func Test_pndImplementation_MarshalDevice(t *testing.T) { ...@@ -375,6 +376,7 @@ func Test_pndImplementation_MarshalDevice(t *testing.T) {
t.Run(tt.name, func(t *testing.T) { t.Run(tt.name, func(t *testing.T) {
pnd := newPnd() pnd := newPnd()
d := &Device{ d := &Device{
Uuid: tt.args.uuid,
GoStruct: &openconfig.Device{}, GoStruct: &openconfig.Device{},
SBI: nil, SBI: nil,
Transport: nil, Transport: nil,
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment