Skip to content

Commit 0c9804b

Browse files
committed
fix test
1 parent 33d6f18 commit 0c9804b

File tree

1 file changed

+26
-11
lines changed

1 file changed

+26
-11
lines changed

test/consolInterfaceDev.jl

Lines changed: 26 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -13,16 +13,32 @@ include("testBlocks.jl")
1313
testDFGAPI = CloudGraphsDFG
1414

1515
# TODO maybe move to cloud graphs permanantly as standard easy to use functions
16-
function DFG.CloudGraphsDFG(; params=NoSolverParams())
17-
cgfg = CloudGraphsDFG{typeof(params)}("localhost", 7474, "neo4j", "test",
18-
"testUser", "testRobot", "testSession_$(string(uuid4())[1:6])",
19-
"description",
20-
nothing,
21-
nothing,
22-
(dfg,f)->f,#IncrementalInference.decodePackedType,
23-
(dfg,f)->f,#ncrementalInference.rebuildFactorMetadata!,
24-
solverParams=params)
25-
createDfgSessionIfNotExist(cgfg)
16+
function DFG.CloudGraphsDFG(; hostname="localhost",
17+
port=7474,
18+
username="neo4j",
19+
password="test",
20+
params=NoSolverParams(),
21+
description::String="CloudGraphsDFG implementation",
22+
userId::String="DefaultUser",
23+
robotId::String="DefaultRobot",
24+
sessionId::String="Session_$(string(uuid4())[1:6])",
25+
userData::Dict{Symbol, String} = Dict{Symbol, String}(),
26+
robotData::Dict{Symbol, String} = Dict{Symbol, String}(),
27+
sessionData::Dict{Symbol, String} = Dict{Symbol, String}())
28+
29+
cgfg = CloudGraphsDFG{typeof(params)}(hostname,
30+
port,
31+
username,
32+
password,
33+
userId,
34+
robotId,
35+
sessionId,
36+
description,
37+
nothing,
38+
nothing,
39+
(dfg,f)->f,#IncrementalInference.decodePackedType,
40+
(dfg,f)->f,#ncrementalInference.rebuildFactorMetadata!,
41+
solverParams=params)
2642

2743
setUserData!(cgfg, Dict{Symbol, String}())
2844
setRobotData!(cgfg, Dict{Symbol, String}())
@@ -59,7 +75,6 @@ function DFG.CloudGraphsDFG(description::String,
5975
(dfg,f)->f,#IncrementalInference.rebuildFactorMetadata!,
6076
solverParams=solverParams)
6177

62-
createDfgSessionIfNotExist(cdfg)
6378

6479
setUserData!(cdfg, userData)
6580
setRobotData!(cdfg, robotData)

0 commit comments

Comments
 (0)