From 54a255357884a98249f6c668c858c30a33bc87cf Mon Sep 17 00:00:00 2001 From: Cryp Toon Date: Mon, 12 Feb 2024 11:20:22 +0100 Subject: [PATCH] Skip mysql cache unittest --- tests/test_db.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tests/test_db.py b/tests/test_db.py index 747d9bdc..fa6f6bbf 100644 --- a/tests/test_db.py +++ b/tests/test_db.py @@ -86,6 +86,8 @@ def test_database_create_drop(self): Wallet.create("tmpwallet", db_uri=self.database_uri) def test_database_cache_create_drop(self): + if os.getenv('UNITTEST_DATABASE') == 'mysql': + self.skipTest('MySQL does not allow indexing on LargeBinary fields, so caching is not possible') dbtmp = DbCache(self.database_cache_uri) srv = Service(cache_uri=self.database_cache_uri, exclude_providers=['bitaps', 'bitgo']) t = srv.gettransaction('68104dbd6819375e7bdf96562f89290b41598df7b002089ecdd3c8d999025b13')