diff --git a/docker/test/stateful/Dockerfile b/docker/test/stateful/Dockerfile
index ef375f8b206..234d0861f8b 100644
--- a/docker/test/stateful/Dockerfile
+++ b/docker/test/stateful/Dockerfile
@@ -7,6 +7,8 @@ RUN apt-get update -y \
&& env DEBIAN_FRONTEND=noninteractive \
apt-get install --yes --no-install-recommends \
python3-requests \
+ nodejs \
+ npm \
&& apt-get clean
COPY s3downloader /s3downloader
@@ -14,5 +16,7 @@ COPY s3downloader /s3downloader
ENV S3_URL="https://clickhouse-datasets.s3.amazonaws.com"
ENV DATASETS="hits visits"
+RUN npm install -g azurite
+
COPY run.sh /
CMD ["/bin/bash", "/run.sh"]
diff --git a/docker/test/stateful/run.sh b/docker/test/stateful/run.sh
index d77978c904b..be0b9f84a1b 100755
--- a/docker/test/stateful/run.sh
+++ b/docker/test/stateful/run.sh
@@ -18,6 +18,7 @@ ln -s /usr/share/clickhouse-test/clickhouse-test /usr/bin/clickhouse-test
/usr/share/clickhouse-test/config/install.sh
./setup_minio.sh stateful
+azurite-blob --blobHost 0.0.0.0 --blobPort 10000 --debug /azurite_log &
function start()
{
diff --git a/tests/config/config.d/storage_conf.xml b/tests/config/config.d/storage_conf.xml
index 68969ea7685..d3300683adf 100644
--- a/tests/config/config.d/storage_conf.xml
+++ b/tests/config/config.d/storage_conf.xml
@@ -78,7 +78,7 @@
azure_blob_storage
http://localhost:10000/devstoreaccount1
cont
- true
+ false
false
devstoreaccount1
diff --git a/tests/queries/0_stateless/01343_min_bytes_to_use_mmap_io.reference b/tests/queries/0_stateless/01343_min_bytes_to_use_mmap_io.reference
index 620777635fc..ac3ce287de5 100644
--- a/tests/queries/0_stateless/01343_min_bytes_to_use_mmap_io.reference
+++ b/tests/queries/0_stateless/01343_min_bytes_to_use_mmap_io.reference
@@ -1,2 +1,2 @@
Hello, world
-1
+2
diff --git a/tests/queries/0_stateless/01344_min_bytes_to_use_mmap_io_index.reference b/tests/queries/0_stateless/01344_min_bytes_to_use_mmap_io_index.reference
index ac3ce287de5..0c0ff9c8e3b 100644
--- a/tests/queries/0_stateless/01344_min_bytes_to_use_mmap_io_index.reference
+++ b/tests/queries/0_stateless/01344_min_bytes_to_use_mmap_io_index.reference
@@ -1,2 +1,2 @@
Hello, world
-2
+4