Skip to content

Commit

Permalink
Remove shelve key test since we no longer save mcp_state or state_met…
Browse files Browse the repository at this point in the history
…adata
  • Loading branch information
KaspariK committed Sep 18, 2024
1 parent 389601b commit 84f4148
Showing 1 changed file with 10 additions and 10 deletions.
20 changes: 10 additions & 10 deletions itest.sh
Original file line number Diff line number Diff line change
Expand Up @@ -61,13 +61,13 @@ fi
kill -SIGTERM $TRON_PID
wait $TRON_PID || true

/opt/venvs/tron/bin/python - <<EOF
import os
from tron.serialize.runstate.shelvestore import ShelveStateStore, ShelveKey
db = ShelveStateStore('$TRON_WORKDIR/tron_state')
key = ShelveKey('job_state', 'test_data')
res = db.restore([key])
ts = res[key][u'create_time']
print("assert db time {} > start time {}".format(ts, int(os.environ['TRON_START_TIME'])))
assert ts > int(os.environ['TRON_START_TIME'])
EOF
# /opt/venvs/tron/bin/python - <<EOF
# import os
# from tron.serialize.runstate.shelvestore import ShelveStateStore, ShelveKey
# db = ShelveStateStore('$TRON_WORKDIR/tron_state')
# key = ShelveKey('mcp_state', 'StateMetadata') "mcp_state___StateMetadata"
# res = db.restore([key])
# ts = res[key][u'create_time']
# print("assert db time {} > start time {}".format(ts, int(os.environ['TRON_START_TIME'])))
# assert ts > int(os.environ['TRON_START_TIME'])
# EOF

0 comments on commit 84f4148

Please sign in to comment.