diff --git a/lib/challenge/preact/preact.go b/lib/challenge/preact/preact.go index 43ebe79b..a01ba2e3 100644 --- a/lib/challenge/preact/preact.go +++ b/lib/challenge/preact/preact.go @@ -60,7 +60,7 @@ func (i *impl) Validate(r *http.Request, lg *slog.Logger, in *challenge.Validate wantTime := in.Challenge.IssuedAt.Add(time.Duration(in.Rule.Challenge.Difficulty) * 95 * time.Millisecond) if time.Now().Before(wantTime) { - return challenge.NewError("validate", "insufficent time", fmt.Errorf("%s: wanted user to wait until at least %s", wantTime.Format(time.RFC3339))) + return challenge.NewError("validate", "insufficent time", fmt.Errorf("%w: wanted user to wait until at least %s", challenge.ErrFailed, wantTime.Format(time.RFC3339))) } got := r.FormValue("result") diff --git a/test/git-clone/test.sh b/test/git-clone/test.sh index 4e05574f..94ad6638 100755 --- a/test/git-clone/test.sh +++ b/test/git-clone/test.sh @@ -9,6 +9,8 @@ set -u ( cd ../.. && \ + npm ci && \ + npm run assets \ ko build --platform=all --base-import-paths --tags="latest" --image-user=1000 --image-annotation="" --image-label="" ./cmd/anubis -L ) diff --git a/test/git-push/test.sh b/test/git-push/test.sh index 132666bf..35ed9fe3 100755 --- a/test/git-push/test.sh +++ b/test/git-push/test.sh @@ -9,6 +9,8 @@ set -u ( cd ../.. && \ + npm ci && \ + npm run assets \ ko build --platform=all --base-import-paths --tags="latest" --image-user=1000 --image-annotation="" --image-label="" ./cmd/anubis -L )