Run the internal/handlers tests in parallel (closes #194) #204
File diff suppressed because it is too large
Load Diff
@@ -1,4 +1,3 @@
|
|||||||
//nolint:paralleltest // global viper, as in api_test.go
|
|
||||||
package handlers_test
|
package handlers_test
|
||||||
|
|
||||||
import (
|
import (
|
||||||
@@ -72,6 +71,8 @@ func numericBody(
|
|||||||
}
|
}
|
||||||
|
|
||||||
func TestUserhost(t *testing.T) {
|
func TestUserhost(t *testing.T) {
|
||||||
|
t.Parallel()
|
||||||
|
|
||||||
tserver := newTestServer(t)
|
tserver := newTestServer(t)
|
||||||
|
|
||||||
token := tserver.createSession("alice")
|
token := tserver.createSession("alice")
|
||||||
@@ -109,6 +110,8 @@ func TestUserhost(t *testing.T) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
func TestVersionAdminInfoTime(t *testing.T) {
|
func TestVersionAdminInfoTime(t *testing.T) {
|
||||||
|
t.Parallel()
|
||||||
|
|
||||||
tserver := newTestServer(t)
|
tserver := newTestServer(t)
|
||||||
|
|
||||||
token := tserver.createSession("frank")
|
token := tserver.createSession("frank")
|
||||||
@@ -147,6 +150,8 @@ func TestVersionAdminInfoTime(t *testing.T) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
func TestKill(t *testing.T) {
|
func TestKill(t *testing.T) {
|
||||||
|
t.Parallel()
|
||||||
|
|
||||||
tserver := newTestServerWithOper(t)
|
tserver := newTestServerWithOper(t)
|
||||||
|
|
||||||
victimToken := tserver.createSession("victim")
|
victimToken := tserver.createSession("victim")
|
||||||
@@ -213,6 +218,8 @@ func TestKill(t *testing.T) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
func TestWallops(t *testing.T) {
|
func TestWallops(t *testing.T) {
|
||||||
|
t.Parallel()
|
||||||
|
|
||||||
tserver := newTestServerWithOper(t)
|
tserver := newTestServerWithOper(t)
|
||||||
|
|
||||||
receiverToken := tserver.createSession("receiver")
|
receiverToken := tserver.createSession("receiver")
|
||||||
@@ -258,6 +265,8 @@ func TestWallops(t *testing.T) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
func TestUserMode(t *testing.T) {
|
func TestUserMode(t *testing.T) {
|
||||||
|
t.Parallel()
|
||||||
|
|
||||||
const (
|
const (
|
||||||
nick = "alice"
|
nick = "alice"
|
||||||
other = "other"
|
other = "other"
|
||||||
|
|||||||
Reference in New Issue
Block a user