def METHOD_NAME(size, message):
    res = r.db("rethinkdb").table("server_config") \
           .get(process2.uuid).update({"cache_size_mb": r.literal(size)}) \
           .run(reql_conn1)
    assert res["errors"] == 1, res
    assert message in res["first_error"]