Skip to content

Commit

Permalink
fix process test failure
Browse files Browse the repository at this point in the history
  • Loading branch information
stou committed Jan 28, 2019
1 parent 0c0cdf0 commit 8c9c4f1
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion process/process_manager_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,15 @@ package process

import (
"testing"
"github.com/ochinchina/supervisord/config"
)

var procs *ProcessManager = NewProcessManager()

func TestProcessMgrAdd(t *testing.T) {
entry := &config.ConfigEntry{ ConfigDir:".", Group:"test", Name: "program:test1" }
procs.Clear()
procs.Add("test1", &Process{})
procs.Add("test1", NewProcess("supervisord", entry ))

if procs.Find("test1") == nil {
t.Error("fail to add process")
Expand Down

0 comments on commit 8c9c4f1

Please sign in to comment.