Skip to content

Commit 4865411

Browse files
committed
fix dot tests i just broke
1 parent 3a2ec9d commit 4865411

File tree

2 files changed

+15
-3
lines changed

2 files changed

+15
-3
lines changed

test/consolInterfaceDev.jl

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -163,6 +163,8 @@ end
163163
end
164164

165165
@testset "Producing Dot Files" begin
166+
fg = testDFGAPI()
167+
clearUser!!(fg)
166168
ProducingDotFiles(testDFGAPI, var1, var2, fac1)
167169
end
168170
#

test/testBlocks.jl

Lines changed: 13 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1166,15 +1166,25 @@ function Summaries(testDFGAPI)
11661166
end
11671167

11681168
function ProducingDotFiles(testDFGAPI,
1169-
v1 = VARTYPE(:a, VariableNodeData{TestSofttype1}()),
1170-
v2 = VARTYPE(:b, VariableNodeData{TestSofttype1}()),
1171-
f1 = (FACTYPE==DFGFactor) ? DFGFactor{Int, :Symbol}(:abf1) : FACTYPE(:abf1);
1169+
v1 = nothing,
1170+
v2 = nothing,
1171+
f1 = nothing;
11721172
VARTYPE=DFGVariable,
11731173
FACTYPE=DFGFactor)
11741174
# "Producing Dot Files"
11751175
# create a simpler graph for dot testing
11761176
dotdfg = testDFGAPI()
11771177

1178+
if v1 == nothing
1179+
v1 = VARTYPE(:a, VariableNodeData{TestSofttype1}())
1180+
end
1181+
if v2 == nothing
1182+
v2 = VARTYPE(:b, VariableNodeData{TestSofttype1}())
1183+
end
1184+
if f1 == nothing
1185+
f1 = (FACTYPE==DFGFactor) ? DFGFactor{Int, :Symbol}(:abf1) : FACTYPE(:abf1)
1186+
end
1187+
11781188
addVariable!(dotdfg, v1)
11791189
addVariable!(dotdfg, v2)
11801190
addFactor!(dotdfg, [v1, v2], f1)

0 commit comments

Comments
 (0)