diff --git a/nixos/tests/minecraft-server.nix b/nixos/tests/minecraft-server.nix
index e6e0bca972a9..dbe2cd6d56fe 100644
--- a/nixos/tests/minecraft-server.nix
+++ b/nixos/tests/minecraft-server.nix
@@ -24,7 +24,7 @@ in import ./make-test-python.nix ({ pkgs, ... }: {
       };
     };
 
-    virtualisation.memorySize = 2048;
+    virtualisation.memorySize = 2047;
   };
 
   testScript = ''