Rename ServerStatus to ServerState internally

This commit is contained in:
Ken Hibino
2021-03-21 06:33:01 -07:00
parent 5af86a0903
commit 105084d6fb
9 changed files with 81 additions and 74 deletions

View File

@@ -3222,7 +3222,7 @@ func TestListServers(t *testing.T) {
ServerID: "server123",
Concurrency: 10,
Queues: map[string]int{"default": 1},
Status: "running",
Status: "active",
Started: started1,
ActiveWorkerCount: 0,
}

View File

@@ -1475,7 +1475,7 @@ func TestWriteServerState(t *testing.T) {
Queues: map[string]int{"default": 2, "email": 5, "low": 1},
StrictPriority: false,
Started: time.Now().UTC(),
Status: "running",
Status: "active",
ActiveWorkerCount: 0,
}
@@ -1565,7 +1565,7 @@ func TestWriteServerStateWithWorkers(t *testing.T) {
Queues: map[string]int{"default": 2, "email": 5, "low": 1},
StrictPriority: false,
Started: time.Now().Add(-10 * time.Minute).UTC(),
Status: "running",
Status: "active",
ActiveWorkerCount: len(workers),
}
@@ -1667,7 +1667,7 @@ func TestClearServerState(t *testing.T) {
Queues: map[string]int{"default": 2, "email": 5, "low": 1},
StrictPriority: false,
Started: time.Now().Add(-10 * time.Minute),
Status: "running",
Status: "active",
ActiveWorkerCount: len(workers1),
}
@@ -1690,7 +1690,7 @@ func TestClearServerState(t *testing.T) {
Queues: map[string]int{"default": 2, "email": 5, "low": 1},
StrictPriority: false,
Started: time.Now().Add(-15 * time.Minute),
Status: "running",
Status: "active",
ActiveWorkerCount: len(workers2),
}