summaryrefslogtreecommitdiffstats
path: root/modules/process/manager_test.go
diff options
context:
space:
mode:
Diffstat (limited to 'modules/process/manager_test.go')
-rw-r--r--modules/process/manager_test.go9
1 files changed, 9 insertions, 0 deletions
diff --git a/modules/process/manager_test.go b/modules/process/manager_test.go
index 42f4b0c04b..a515fc32cd 100644
--- a/modules/process/manager_test.go
+++ b/modules/process/manager_test.go
@@ -12,6 +12,15 @@ import (
"github.com/stretchr/testify/assert"
)
+func TestGetManager(t *testing.T) {
+ go func() {
+ // test race protection
+ _ = GetManager()
+ }()
+ pm := GetManager()
+ assert.NotNil(t, pm)
+}
+
func TestManager_Add(t *testing.T) {
pm := Manager{processes: make(map[int64]*Process)}