Skip to content

Commit

Permalink
fix: test cert/key paths
Browse files Browse the repository at this point in the history
  • Loading branch information
demike committed Feb 3, 2022
1 parent 1133015 commit 0498917
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/test-server.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ import { TransportType } from "./ws/server-endpoint";
import { WsOPCUAServer } from "./ws/ws-opcua-server";
import { nodesets } from "node-opcua-nodesets";
import { UserManager } from "./user-manager";
import * as path from 'path';

async function adjust_address_space(server: WsOPCUAServer) {
// reduce the minimum sampling interval of CurrentTime from 1000 to 50 to possibly speed up tests
Expand Down Expand Up @@ -40,8 +41,8 @@ export async function startTestServer(nodeSetFileNames: string[]) {
serverCapabilities: {
minSupportedSampleRate: 10,
},
certificateFile: 'assets/certificate.pem',
privateKeyFile: 'assets/private_key.pem'
certificateFile: path.join(__dirname,'./assets/certificate.pem'),
privateKeyFile: path.join(__dirname,'./assets/private_key.pem')
});

await server.initialize();
Expand Down

0 comments on commit 0498917

Please sign in to comment.