mirror of https://github.com/statping/statping
fixed test
parent
01f2d0184f
commit
30aa4e74cf
|
@ -85,7 +85,7 @@ func TestRunAll(t *testing.T) {
|
||||||
t.Run(dbt+" Select Core", func(t *testing.T) {
|
t.Run(dbt+" Select Core", func(t *testing.T) {
|
||||||
RunSelectCoreMYQL(t, dbt)
|
RunSelectCoreMYQL(t, dbt)
|
||||||
})
|
})
|
||||||
t.Run(dbt+" Select DbServices", func(t *testing.T) {
|
t.Run(dbt+" Select Services", func(t *testing.T) {
|
||||||
RunSelectAllMysqlServices(t)
|
RunSelectAllMysqlServices(t)
|
||||||
})
|
})
|
||||||
t.Run(dbt+" Select Comms", func(t *testing.T) {
|
t.Run(dbt+" Select Comms", func(t *testing.T) {
|
||||||
|
|
|
@ -49,7 +49,7 @@ func SelectService(id int64) *Service {
|
||||||
func (c *Core) SelectAllServices() ([]*types.Service, error) {
|
func (c *Core) SelectAllServices() ([]*types.Service, error) {
|
||||||
var services []*types.Service
|
var services []*types.Service
|
||||||
var servs []*types.Service
|
var servs []*types.Service
|
||||||
col := serviceCol().Find().OrderBy("order")
|
col := serviceCol().Find().OrderBy("order_id")
|
||||||
err := col.All(&services)
|
err := col.All(&services)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
utils.Log(3, fmt.Sprintf("service error: %v", err))
|
utils.Log(3, fmt.Sprintf("service error: %v", err))
|
||||||
|
|
Loading…
Reference in New Issue