Skip to content

Commit

Permalink
Failing test shutdown (See #7325)
Browse files Browse the repository at this point in the history
  • Loading branch information
joshmoore committed Jan 13, 2012
1 parent 33ad513 commit b04ee7b
Showing 1 changed file with 33 additions and 0 deletions.
33 changes: 33 additions & 0 deletions components/tools/OmeroPy/test/clitest/admin.py
Original file line number Diff line number Diff line change
Expand Up @@ -157,5 +157,38 @@ def create(self, *args): raise omero.WrappedCreateSessionException()
self.invoke("a status")
self.assertEquals(0, self.cli.rv)

#
# Bugs
#

"""
Issues with error handling in certain situations
especially with changing networks interfaces.
"""

def test7325NoWaitForShutdown(self):
"""
First issue in the error reported in Will's description
(ignoring the comments) is that if the master could
not be reached, there should be no waiting on shutdown.
"""

# Although later status says the servers not running
# the node ping much return a 0 because otherwise
# stopasync returns immediately
self.cli.checksStatus(0) # node ping

# Then since "Was the server already stopped?" was
# printed, the call to shutdown master must return 1
self.cli.addCall(1)

self.invoke("a restart")
self.cli.assertStderr([])
self.cli.assertStdout([])

# This test fails. With whatever solution is chosen
# for 7325, the restart here should not wait on shutdown
# if there's no connection available.

if __name__ == '__main__':
unittest.main()

0 comments on commit b04ee7b

Please sign in to comment.