Run tests in parallel

This commit is contained in:
Evan Goode 2024-12-05 21:12:24 -05:00
parent e286356cd7
commit ca081f8519
8 changed files with 8 additions and 0 deletions

View File

@ -8,6 +8,7 @@ import (
)
func TestAccount(t *testing.T) {
t.Parallel()
{
ts := &TestSuite{}

View File

@ -10,6 +10,7 @@ import (
)
func TestAPI(t *testing.T) {
t.Parallel()
{
// Registration as existing player not allowed
ts := &TestSuite{}

View File

@ -8,6 +8,7 @@ import (
)
func TestAuth(t *testing.T) {
t.Parallel()
{
ts := &TestSuite{}

View File

@ -12,6 +12,7 @@ const FALLBACK_SKIN_DOMAIN_A = "a.example.com"
const FALLBACK_SKIN_DOMAIN_B = "b.example.com"
func TestAuthlibInjector(t *testing.T) {
t.Parallel()
// Just check that AuthlibInjectorRoot works.
// authlib-injector also expects a X-Authlib-Injector-API-Location header
// on the authserver and sessionserver routes that it uses; those are

View File

@ -15,6 +15,7 @@ func configTestConfig(stateDirectory string) *Config {
}
func TestConfig(t *testing.T) {
t.Parallel()
sd := Unwrap(os.MkdirTemp("", "tmp"))
defer os.RemoveAll(sd)

View File

@ -132,6 +132,7 @@ func (ts *TestSuite) loginShouldFail(t *testing.T, rec *httptest.ResponseRecorde
}
func TestFront(t *testing.T) {
t.Parallel()
{
// Registration as existing player not allowed
ts := &TestSuite{}

View File

@ -18,6 +18,7 @@ import (
const SERVICES_EXISTING_USERNAME = "ExistingUser"
func TestServices(t *testing.T) {
t.Parallel()
{
ts := &TestSuite{}

View File

@ -8,6 +8,7 @@ import (
)
func TestSession(t *testing.T) {
t.Parallel()
{
ts := &TestSuite{}