diff --git a/catalogue/CatalogueTest.cpp b/catalogue/CatalogueTest.cpp
index e49dc259aad161cd34ad9d2d079bfff8dca22b59..391d1001e4d570335cbe0a6d19c046fa5f4849cf 100644
--- a/catalogue/CatalogueTest.cpp
+++ b/catalogue/CatalogueTest.cpp
@@ -1789,7 +1789,7 @@ TEST_P(cta_catalogue_CatalogueTest, createTape_9_exabytes_capacity) {
   const std::string logicalLibraryName = "logical_library_name";
   const std::string tapePoolName = "tape_pool_name";
   // The maximum size of an SQLite integer is a signed 64-bit integer
-  const uint64_t capacityInBytes = std::numeric_limits<int64_t>::max();
+  const uint64_t capacityInBytes = 9L * 1000 * 1000 * 1000 * 1000 * 1000 * 1000;
   const bool disabledValue = true;
   const bool fullValue = false;
   const std::string comment = "Create tape";