diff --git a/tests/db.php b/tests/db.php index 1e5b36156..c79fab168 100644 --- a/tests/db.php +++ b/tests/db.php @@ -33,7 +33,10 @@ $map = [ ]; $settings = $map[$argv[1]]; -$settings->setSerializer($argv[2] === 'igbinary' ? SerializerType::IGBINARY : SerializerType::SERIALIZE); + +if (!$settings instanceof Memory) { + $settings->setSerializer($argv[2] === 'igbinary' ? SerializerType::IGBINARY : SerializerType::SERIALIZE); +} $MadelineProto->updateSettings($settings);