Skip to content

Commit d690b09

Browse files
committed
Fix AppServiceFactory methods
1 parent da4e775 commit d690b09

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

tests/managers/SystemCapabilityManagerTests.js

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -111,14 +111,17 @@ module.exports = function (appClient) {
111111
)
112112
.setServiceID(serviceID)
113113
.setServiceActive(isActive)
114-
.setServicePublish(true);
114+
.setServicePublished(true);
115115
return appServiceRecord;
116116
}
117117

118118
function createAppServiceManifest (type, serviceName) {
119119
const manifest = new SDL.rpc.structs.AppServiceManifest()
120120
.setServiceName(serviceName)
121-
.setRpcSpecVersion(SDL.manager.lifecycle._LifecycleManager.MAX_RPC_VERSION)
121+
.setRpcSpecVersion(new SDL.rpc.structs.SdlMsgVersion()
122+
.setMajorVersion(SDL.manager.lifecycle._LifecycleManager.MAX_RPC_VERSION.getMajor())
123+
.setMinorVersion(SDL.manager.lifecycle._LifecycleManager.MAX_RPC_VERSION.getMinor())
124+
.setPatchVersion(SDL.manager.lifecycle._LifecycleManager.MAX_RPC_VERSION.getPatch()))
122125
.setAllowAppConsumers(true);
123126
const handledRPCs = [];
124127
const AppServiceType = SDL.rpc.enums.AppServiceType;
@@ -146,7 +149,7 @@ module.exports = function (appClient) {
146149
handledRPCs.push(SDL.rpc.enums.FunctionID.UnsubscribeVehicleData);
147150

148151
const navigationServiceManifest = new SDL.rpc.structs.NavigationServiceManifest()
149-
.setAcceptsWaypoints(true);
152+
.setAcceptsWayPoints(true);
150153
manifest.setNavigationServiceManifest(navigationServiceManifest);
151154
break;
152155
}

0 commit comments

Comments
 (0)