mirror of
https://github.com/unmojang/drasl.git
synced 2025-09-08 06:35:12 -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) {
|
func TestAccount(t *testing.T) {
|
||||||
|
t.Parallel()
|
||||||
{
|
{
|
||||||
ts := &TestSuite{}
|
ts := &TestSuite{}
|
||||||
|
|
||||||
|
@ -10,6 +10,7 @@ import (
|
|||||||
)
|
)
|
||||||
|
|
||||||
func TestAPI(t *testing.T) {
|
func TestAPI(t *testing.T) {
|
||||||
|
t.Parallel()
|
||||||
{
|
{
|
||||||
// Registration as existing player not allowed
|
// Registration as existing player not allowed
|
||||||
ts := &TestSuite{}
|
ts := &TestSuite{}
|
||||||
|
@ -8,6 +8,7 @@ import (
|
|||||||
)
|
)
|
||||||
|
|
||||||
func TestAuth(t *testing.T) {
|
func TestAuth(t *testing.T) {
|
||||||
|
t.Parallel()
|
||||||
{
|
{
|
||||||
ts := &TestSuite{}
|
ts := &TestSuite{}
|
||||||
|
|
||||||
|
@ -12,6 +12,7 @@ const FALLBACK_SKIN_DOMAIN_A = "a.example.com"
|
|||||||
const FALLBACK_SKIN_DOMAIN_B = "b.example.com"
|
const FALLBACK_SKIN_DOMAIN_B = "b.example.com"
|
||||||
|
|
||||||
func TestAuthlibInjector(t *testing.T) {
|
func TestAuthlibInjector(t *testing.T) {
|
||||||
|
t.Parallel()
|
||||||
// Just check that AuthlibInjectorRoot works.
|
// Just check that AuthlibInjectorRoot works.
|
||||||
// authlib-injector also expects a X-Authlib-Injector-API-Location header
|
// authlib-injector also expects a X-Authlib-Injector-API-Location header
|
||||||
// on the authserver and sessionserver routes that it uses; those are
|
// 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) {
|
func TestConfig(t *testing.T) {
|
||||||
|
t.Parallel()
|
||||||
sd := Unwrap(os.MkdirTemp("", "tmp"))
|
sd := Unwrap(os.MkdirTemp("", "tmp"))
|
||||||
defer os.RemoveAll(sd)
|
defer os.RemoveAll(sd)
|
||||||
|
|
||||||
|
@ -132,6 +132,7 @@ func (ts *TestSuite) loginShouldFail(t *testing.T, rec *httptest.ResponseRecorde
|
|||||||
}
|
}
|
||||||
|
|
||||||
func TestFront(t *testing.T) {
|
func TestFront(t *testing.T) {
|
||||||
|
t.Parallel()
|
||||||
{
|
{
|
||||||
// Registration as existing player not allowed
|
// Registration as existing player not allowed
|
||||||
ts := &TestSuite{}
|
ts := &TestSuite{}
|
||||||
|
@ -18,6 +18,7 @@ import (
|
|||||||
const SERVICES_EXISTING_USERNAME = "ExistingUser"
|
const SERVICES_EXISTING_USERNAME = "ExistingUser"
|
||||||
|
|
||||||
func TestServices(t *testing.T) {
|
func TestServices(t *testing.T) {
|
||||||
|
t.Parallel()
|
||||||
{
|
{
|
||||||
ts := &TestSuite{}
|
ts := &TestSuite{}
|
||||||
|
|
||||||
|
@ -8,6 +8,7 @@ import (
|
|||||||
)
|
)
|
||||||
|
|
||||||
func TestSession(t *testing.T) {
|
func TestSession(t *testing.T) {
|
||||||
|
t.Parallel()
|
||||||
{
|
{
|
||||||
ts := &TestSuite{}
|
ts := &TestSuite{}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user