Skip to content

Commit aa1fd62

Browse files
committed
mitigates server write problem
1 parent d8b453a commit aa1fd62

File tree

1 file changed

+14
-4
lines changed

1 file changed

+14
-4
lines changed

tests/test_004_io.py

Lines changed: 14 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -25,12 +25,22 @@ def test_loadGraph(self):
2525
# test saving a graph
2626
def test_saveGraph(self):
2727
g=self.g
28-
graphMl="a_fish_named_wanda.xml"
28+
graphMl="/tmp/a_fish_named_wanda.xml"
2929
# drop the existing content of the graph
3030
g.V().drop().iterate()
3131
g.addV("Fish").property("name","Wanda").iterate()
32-
g.io(self.volume.remote(graphMl)).write().iterate()
32+
g.io(graphMl).write().iterate()
3333
if self.debug:
34-
print(f"wrote graph to {self.volume.remote(graphMl)}")
34+
print(f"wrote graph to {graphMl}")
35+
g.V().drop().iterate()
36+
g.io(graphMl).read().iterate()
37+
vCount=g.V().count().next()
38+
debug=self.debug
39+
debug=True
40+
if debug:
41+
print (f"{graphMl} has {vCount} vertices")
42+
assert vCount==1
3543
# check that the graphml file exists
36-
assert os.path.isfile(self.volume.local(graphMl))
44+
# unfortunately this doesn't work as of 2023-06-11
45+
# in the github CI
46+
#assert os.path.isfile(self.volume.local(graphMl))

0 commit comments

Comments
 (0)