Stabilize :session-delete tests

This commit is contained in:
Florian Bruhin 2016-10-14 07:24:36 +02:00
parent 8e879f9879
commit 229faac9cb
2 changed files with 4 additions and 0 deletions

View File

@ -481,3 +481,5 @@ class SessionManager(QObject):
log.sessions.exception("Error while deleting session!")
raise cmdexc.CommandError("Error while deleting session: {}"
.format(e))
else:
log.sessions.debug("Deleted session {}.".format(name))

View File

@ -294,11 +294,13 @@ Feature: Saving and loading sessions
Scenario: Deleting internal session with --force
When I run :session-save --force _internal
And I run :session-delete --force _internal
And I wait for "Deleted session _internal." in the log
Then the session _internal should not exist
Scenario: Normally deleting a session
When I run :session-save deleted_session
And I run :session-delete deleted_session
And I wait for "Deleted session deleted_session." in the log
Then the session deleted_session should not exist
Scenario: Deleting a session which doesn't exist