Skip to content

Commit

Permalink
Fixed test
Browse files Browse the repository at this point in the history
  • Loading branch information
awicenec committed Mar 1, 2023
1 parent afab19a commit 3d6e124
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
3 changes: 1 addition & 2 deletions daliuge-engine/test/test_drop.py
Original file line number Diff line number Diff line change
Expand Up @@ -781,7 +781,7 @@ def assertFiles(
a = FileDROP(
"a",
"a",
filepath=tempDir + "/",
filepath=tempDir,
delete_parent_directory=delete_parent_directory,
)
a.write(b" ")
Expand Down Expand Up @@ -958,7 +958,6 @@ def run(self):
self.assertEqual(AppDROPStates.FINISHED, a.execStatus)

def test_rdbms_drop(self):

dbfile = "test_rdbms_drop.db"
if os.path.isfile(dbfile):
os.unlink(dbfile)
Expand Down
6 changes: 5 additions & 1 deletion daliuge-translator/dlg/dropmake/pg_generator.py
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,11 @@ def unroll(lg, oid_prefix=None, zerorun=False, app=None):
for dropspec in drop_list:
if "app" in dropspec:
dropspec["app"] = app
dropspec["sleepTime"] = dropspec["execution_time"]
dropspec["sleepTime"] = (
dropspec["execution_time"]
if "execution_time" in dropspec
else 2
)
drop_list.append(lg.reprodata)
return drop_list

Expand Down

0 comments on commit 3d6e124

Please sign in to comment.