diff --git a/integration_tests/devicediagnosis_test.go b/integration_tests/devicediagnosis_test.go index faa2370..8a4c84a 100644 --- a/integration_tests/devicediagnosis_test.go +++ b/integration_tests/devicediagnosis_test.go @@ -30,7 +30,7 @@ type DeviceDiagnosisSuite struct { } func (s *DeviceDiagnosisSuite) BeforeTest(suiteName, testName string) { - s.sut, s.remoteSki, s.remoteDevice, s.writeHandler = beforeTest(suiteName, testName, 1, model.FeatureTypeTypeDeviceDiagnosis, model.RoleTypeServer) + s.sut, s.remoteSki, s.remoteDevice, s.writeHandler = beforeTest(1, model.FeatureTypeTypeDeviceDiagnosis, model.RoleTypeServer) // f.AddFunctionType(model.FunctionTypeDeviceDiagnosisHeartbeatData, true, false) diff --git a/integration_tests/electricalconnection_test.go b/integration_tests/electricalconnection_test.go index b1f15a3..d93ce44 100644 --- a/integration_tests/electricalconnection_test.go +++ b/integration_tests/electricalconnection_test.go @@ -35,7 +35,7 @@ func (s *ElectricalConnectionSuite) SetupSuite() { } func (s *ElectricalConnectionSuite) BeforeTest(suiteName, testName string) { - s.sut, s.remoteSki, s.remoteDevice, s.writeHandler = beforeTest(suiteName, testName, 1, model.FeatureTypeTypeElectricalConnection, model.RoleTypeClient) + s.sut, s.remoteSki, s.remoteDevice, s.writeHandler = beforeTest(1, model.FeatureTypeTypeElectricalConnection, model.RoleTypeClient) initialCommunication(s.T(), s.remoteDevice, s.writeHandler) } diff --git a/integration_tests/helper_test.go b/integration_tests/helper_test.go index fe9f4cc..0b4daa6 100644 --- a/integration_tests/helper_test.go +++ b/integration_tests/helper_test.go @@ -98,7 +98,7 @@ func (t *WriteMessageHandler) ResultWithReference(msgCounterReference *model.Msg } func beforeTest( - suiteName, testName string, fId uint, ftype model.FeatureTypeType, + fId uint, ftype model.FeatureTypeType, frole model.RoleType) (api.DeviceLocalInterface, string, api.DeviceRemoteInterface, *WriteMessageHandler) { sut := spine.NewDeviceLocal("TestBrandName", "TestDeviceModel", "TestSerialNumber", "TestDeviceCode", "TestDeviceAddress", model.DeviceTypeTypeEnergyManagementSystem, model.NetworkManagementFeatureSetTypeSmart, time.Second*4) diff --git a/integration_tests/measurement_test.go b/integration_tests/measurement_test.go index e9d46a9..15401df 100644 --- a/integration_tests/measurement_test.go +++ b/integration_tests/measurement_test.go @@ -35,7 +35,7 @@ func (s *MeasurementSuite) SetupSuite() { } func (s *MeasurementSuite) BeforeTest(suiteName, testName string) { - s.sut, s.remoteSki, s.remoteDevice, s.writeHandler = beforeTest(suiteName, testName, 2, model.FeatureTypeTypeMeasurement, model.RoleTypeClient) + s.sut, s.remoteSki, s.remoteDevice, s.writeHandler = beforeTest(2, model.FeatureTypeTypeMeasurement, model.RoleTypeClient) initialCommunication(s.T(), s.remoteDevice, s.writeHandler) }