File tree 2 files changed +7
-4
lines changed
2 files changed +7
-4
lines changed Original file line number Diff line number Diff line change @@ -32,8 +32,9 @@ About this test file:
32
32
* This must match with .VERSION
33
33
*/
34
34
const PLC_PROJECT_VERSION = '2.0.0' ;
35
- const AMS_NET_ID = '5.19.100.19.1.1' ;
36
35
36
+ const AMS_NET_ID = process . env . AMS_NET_ID ?? '5.19.100.19.1.1' ;
37
+ const LOCAL_AMS_NET_ID = process . env . LOCAL_AMS_NET_ID ?? '192.168.68.101.1.1' ;
37
38
38
39
const { Client, ADS } = require ( '../../dist/ads-client' ) ;
39
40
const util = require ( 'util' ) ;
@@ -89,7 +90,7 @@ describe('connection', () => {
89
90
expect ( Object . keys ( client . connection ) ) . toStrictEqual ( Object . keys ( {
90
91
connected : true ,
91
92
isLocal : false ,
92
- localAmsNetId : '192.168.68.101.1.1' ,
93
+ localAmsNetId : LOCAL_AMS_NET_ID ,
93
94
localAdsPort : 32891 ,
94
95
targetAmsNetId : client . settings . targetAmsNetId ,
95
96
targetAdsPort : 851
Original file line number Diff line number Diff line change @@ -25,7 +25,9 @@ SOFTWARE.
25
25
* This must match with GVL_AdsClientTests.VERSION
26
26
*/
27
27
const PLC_PROJECT_VERSION = '2.0.0' ;
28
- const AMS_NET_ID = '192.168.4.1.1.1' ;
28
+
29
+ const AMS_NET_ID = process . env . AMS_NET_ID ?? '192.168.4.1.1.1' ;
30
+ const LOCAL_AMS_NET_ID = process . env . LOCAL_AMS_NET_ID ?? '192.168.68.101.1.1' ;
29
31
30
32
const { Client, ADS } = require ( '../../dist/ads-client' ) ;
31
33
const util = require ( 'util' ) ;
@@ -82,7 +84,7 @@ describe('connection', () => {
82
84
expect ( Object . keys ( client . connection ) ) . toStrictEqual ( Object . keys ( {
83
85
connected : true ,
84
86
isLocal : false ,
85
- localAmsNetId : '192.168.68.101.1.1' ,
87
+ localAmsNetId : LOCAL_AMS_NET_ID ,
86
88
localAdsPort : 32891 ,
87
89
targetAmsNetId : client . settings . targetAmsNetId ,
88
90
targetAdsPort : 851
You can’t perform that action at this time.
0 commit comments