mirror of
https://github.com/unmojang/drasl.git
synced 2025-08-03 10:56:06 -04:00
Run tests in parallel
This commit is contained in:
parent
e286356cd7
commit
ca081f8519
@ -8,6 +8,7 @@ import (
|
||||
)
|
||||
|
||||
func TestAccount(t *testing.T) {
|
||||
t.Parallel()
|
||||
{
|
||||
ts := &TestSuite{}
|
||||
|
||||
|
@ -10,6 +10,7 @@ import (
|
||||
)
|
||||
|
||||
func TestAPI(t *testing.T) {
|
||||
t.Parallel()
|
||||
{
|
||||
// Registration as existing player not allowed
|
||||
ts := &TestSuite{}
|
||||
|
@ -8,6 +8,7 @@ import (
|
||||
)
|
||||
|
||||
func TestAuth(t *testing.T) {
|
||||
t.Parallel()
|
||||
{
|
||||
ts := &TestSuite{}
|
||||
|
||||
|
@ -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
|
||||
|
@ -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)
|
||||
|
||||
|
@ -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{}
|
||||
|
@ -18,6 +18,7 @@ import (
|
||||
const SERVICES_EXISTING_USERNAME = "ExistingUser"
|
||||
|
||||
func TestServices(t *testing.T) {
|
||||
t.Parallel()
|
||||
{
|
||||
ts := &TestSuite{}
|
||||
|
||||
|
@ -8,6 +8,7 @@ import (
|
||||
)
|
||||
|
||||
func TestSession(t *testing.T) {
|
||||
t.Parallel()
|
||||
{
|
||||
ts := &TestSuite{}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user