Files
blocky/api/api_suite_test.go
T
ThinkChaos d52c598546 fix(tests): properly silence log output (#1259)
* 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
2023-11-19 17:51:49 -05:00

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")
}