mirror of
https://github.com/0xERR0R/blocky.git
synced 2026-10-12 02:01:13 +00:00
* fix(tests): properly silence log output Using `init` allows it to also work for benchmarks. And `log.Silence` was sometimes getting overridden by `log.init`. * squash: fix(server): don't setup the logger again
19 lines
255 B
Go
19 lines
255 B
Go
package api_test
|
|
|
|
import (
|
|
"testing"
|
|
|
|
"github.com/0xERR0R/blocky/log"
|
|
. "github.com/onsi/ginkgo/v2"
|
|
. "github.com/onsi/gomega"
|
|
)
|
|
|
|
func init() {
|
|
log.Silence()
|
|
}
|
|
|
|
func TestResolver(t *testing.T) {
|
|
RegisterFailHandler(Fail)
|
|
RunSpecs(t, "API Suite")
|
|
}
|