[VOL-3285] Resolving statis code analysis warnings
Change-Id: Iaddaae92c649fd27ce0a63f1786af594667c9e8e
diff --git a/internal/bbsim/responders/sadis/sadis_test.go b/internal/bbsim/responders/sadis/sadis_test.go
index 59c3874..04e0240 100644
--- a/internal/bbsim/responders/sadis/sadis_test.go
+++ b/internal/bbsim/responders/sadis/sadis_test.go
@@ -26,12 +26,12 @@
"gotest.tools/assert"
)
-func createMockDevices() (devices.OltDevice, devices.Onu) {
- olt := devices.OltDevice{
+func createMockDevices() (*devices.OltDevice, *devices.Onu) {
+ olt := &devices.OltDevice{
ID: 0,
}
- onu := devices.Onu{
+ onu := &devices.Onu{
ID: 1,
PonPortID: 1,
STag: 900,
@@ -50,7 +50,7 @@
uni := "1"
- res, err := GetOnuEntryV1(&olt, &onu, uni)
+ res, err := GetOnuEntryV1(olt, onu, uni)
if err != nil {
t.Fatal(err)
}
@@ -70,7 +70,7 @@
uni := "1"
- res, err := GetOnuEntryV2(&olt, &onu, uni)
+ res, err := GetOnuEntryV2(olt, onu, uni)
if err != nil {
t.Fatal(err)
}
@@ -99,7 +99,7 @@
uni := "1"
- res, err := GetOnuEntryV2(&olt, &onu, uni)
+ res, err := GetOnuEntryV2(olt, onu, uni)
if err != nil {
t.Fatal(err)
}