Skip to content

Commit dbc6cd4

Browse files
committed
Add some defensive code
1 parent 0b68634 commit dbc6cd4

File tree

2 files changed

+3
-0
lines changed

2 files changed

+3
-0
lines changed

tests/integration_tests/Test/PM/Integration/BatchActivate.cls

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -118,6 +118,7 @@ Method TestBatchActivationSkipsWhenNoChanges()
118118
set sc = ##class(%IPM.Main).Shell("unmap -ns " _ ns _ " -q")
119119
do $$$AssertStatusOK(sc, "First unmap executed successfully")
120120

121+
set cookie = ""
121122
do ##class(%IPM.Utils.Module).BeginCaptureOutput(.cookie)
122123
// Try to unmap again from the same namespace
123124
// Since there are no more IPM mappings, this should skip

tests/integration_tests/Test/PM/Integration/CPFMerge.cls

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ Method TestCPFMerge()
88
set moduleDir = ..GetModuleDir(..#TargetModuleName)
99

1010
// During load, only the config-globals.cpf file should be merged
11+
set cookie = ""
1112
do ##class(%IPM.Utils.Module).BeginCaptureOutput(.cookie)
1213
set sc = ##class(%IPM.Main).Shell("load -v " _ moduleDir)
1314
do ##class(%IPM.Utils.Module).EndCaptureOutput(cookie, .pLoadOutput)
@@ -79,6 +80,7 @@ Method TestSystemExpressions()
7980
do $$$AssertStatusOK(sc, "Loaded module successfully")
8081

8182
// Run the custom phase that merges the CPF with system expressions
83+
set cookie = ""
8284
do ##class(%IPM.Utils.Module).BeginCaptureOutput(.cookie)
8385
set sc = ##class(%IPM.Main).Shell("cpf-merge testsystemexpressions -v -only")
8486
do ##class(%IPM.Utils.Module).EndCaptureOutput(cookie, .pOutput)

0 commit comments

Comments
 (0)