Files

18 lines
364 B
Go
Raw Permalink Normal View History

package auth_test
import (
"testing"
"go.uber.org/goleak"
"golang.org/x/crypto/bcrypt"
"github.com/J3vb/OwnCord/Server/auth"
)
func TestMain(m *testing.M) {
// Password hashing dominates this suite's runtime at the production cost
// of 12; nothing under test depends on hash strength.
auth.SetCostForTesting(bcrypt.MinCost)
goleak.VerifyTestMain(m)
}