autocert: remove non-determinism (#1932)

* autocert: remove non-determinism

* try sorting coverage
This commit is contained in:
Caleb Doxsey 2021-02-23 09:56:11 -07:00 committed by GitHub
parent 9c7958b66f
commit 218acc001b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 1 deletions

View file

@ -109,6 +109,7 @@ cover: ## Runs go test with coverage
@sed -i.bak '/\.pb\.go\:/d' coverage.txt
@sed -i.bak '/\/statik\.go\:/d' coverage.txt
@sed -i.bak '/\/mock\.go\:/d' coverage.txt
@sort -o coverage.txt coverage.txt
.PHONY: clean
clean: ## Cleanup any build binaries or packages.

View file

@ -167,7 +167,7 @@ func TestConfig(t *testing.T) {
}), certmagic.ACMEManager{
CA: srv.URL + "/acme/directory",
TestCA: srv.URL + "/acme/directory",
}, time.Second)
}, time.Millisecond*100)
if !assert.NoError(t, err) {
return
}