Mercurial > hg > orthanc-tests
diff Tests/Tests.py @ 490:10a47656e34f
new tests for MaximumStorageMode
author | Alain Mazy <am@osimis.io> |
---|---|
date | Tue, 09 Aug 2022 17:57:57 +0200 |
parents | e904b2282b0e |
children | f78f7ee6b660 |
line wrap: on
line diff
--- a/Tests/Tests.py Mon Aug 08 10:55:47 2022 +0200 +++ b/Tests/Tests.py Tue Aug 09 17:57:57 2022 +0200 @@ -2477,6 +2477,10 @@ retries -= 1 with open(os.devnull, 'w') as FNULL: try: + + print([ FindExecutable('storescu') ] + tmp + + [ _REMOTE['Server'], str(_REMOTE['DicomPort']), + GetDatabasePath(image) ]) subprocess.check_call([ FindExecutable('storescu') ] + tmp + [ _REMOTE['Server'], str(_REMOTE['DicomPort']), GetDatabasePath(image) ], @@ -2505,7 +2509,7 @@ else: InstallLuaScriptFromPath(_REMOTE, 'Lua/TransferSyntaxDisable.lua') - # the following line regularly fails on CI because storescu still returns 0 although the C-Store fails !! + # the following line regularly fails on CI because storescu still returns 0 although the C-Store fails -> that's why we have implemented retries self.assertRaises(Exception, lambda: storescu('Knix/Loc/IM-0001-0001.dcm', False, False, 3)) self.assertRaises(Exception, lambda: storescu('UnknownSopClassUid.dcm', True, False, 3)) self.assertEqual(0, len(DoGet(_REMOTE, '/patients'))) @@ -2523,6 +2527,8 @@ storescu('UnknownSopClassUid.dcm', True) self.assertEqual(2, len(DoGet(_REMOTE, '/patients'))) + time.sleep(200) + # set back normal verbosity DoPut(_REMOTE, '/tools/log-level', 'default')