diff --git a/.docker/Dockerfile-test-hsm b/.docker/Dockerfile-test-hsm index 5ce11692225..f2de2c17d6e 100644 --- a/.docker/Dockerfile-test-hsm +++ b/.docker/Dockerfile-test-hsm @@ -19,7 +19,6 @@ ENV HSM_ENABLED=true ENV HSM_LIBRARY=/usr/lib/softhsm/libsofthsm2.so ENV HSM_TOKEN_LABEL=hydra ENV HSM_PIN=1234 -ENV UPDATE_SNAPSHOTS=true RUN apt-get -y install softhsm opensc RUN pkcs11-tool --module "$HSM_LIBRARY" --slot 0 --init-token --so-pin 0000 --init-pin --pin "$HSM_PIN" --label "$HSM_TOKEN_LABEL" @@ -30,4 +29,4 @@ RUN go test -p 1 -failfast -short -tags=sqlite,hsm ./... FROM builder AS test-refresh-hsm -RUN go test -p 1 -failfast -short -tags=sqlite,hsm,refresh ./... +RUN UPDATE_SNAPSHOTS=true go test -p 1 -failfast -short -tags=sqlite,hsm,refresh ./...