File tree Expand file tree Collapse file tree 1 file changed +3
-1
lines changed
Expand file tree Collapse file tree 1 file changed +3
-1
lines changed Original file line number Diff line number Diff line change @@ -126,21 +126,23 @@ var statefulProcessCommandProxy = new StatefulProcessCommandProxy(
126126 preDestroyCommands: [ 'echo This ProcessProxy is being destroyed!' ]
127127 });
128128
129+ // echo the value of our env variable set above in the constructor config
129130statefulProcessCommandProxy.executeCommand('echo testEnvVar')
130131 .then(function(cmdResult) {
131132 console.log("testEnvVar value: Stdout: " + cmdResult.stdout);
132133 }).catch(function(error) {
133134 console.log("Error: " + error);
134135 });
135136
137+ // echo the value of our init command that was configured above
136138statefulProcessCommandProxy.executeCommand('echo testInitVar')
137139 .then(function(cmdResult) {
138140 console.log("testInitVar value: Stdout: " + cmdResult.stdout);
139141 }).catch(function(error) {
140142 console.log("Error: " + error);
141143 });
142144
143-
145+ // test that our invalidation regex above traps and destroys this process instance
144146statefulProcessCommandProxy.executeCommand('echo "this command has an error and will be '+
145147 ' destroyed after check-in because it matches our invalidation regex"')
146148 .then(function(cmdResult) {
You can’t perform that action at this time.
0 commit comments