Add ProcessState type to base package

This commit is contained in:
Ken Hibino
2020-02-18 06:57:39 -08:00
parent f9a6c6156f
commit 830020eb39
9 changed files with 150 additions and 79 deletions

View File

@@ -2059,7 +2059,7 @@ func TestListProcesses(t *testing.T) {
Queues: map[string]int{"default": 1},
Host: "do.droplet1",
PID: 1234,
State: "running",
Status: "running",
Started: time.Now().Add(-time.Hour),
ActiveWorkerCount: 5,
}
@@ -2069,7 +2069,7 @@ func TestListProcesses(t *testing.T) {
Queues: map[string]int{"email": 1},
Host: "do.droplet2",
PID: 9876,
State: "stopped",
Status: "stopped",
Started: time.Now().Add(-2 * time.Hour),
ActiveWorkerCount: 20,
}