fixed test

pull/57/head
Hunter Long 2018-08-21 01:15:17 -07:00
parent 01f2d0184f
commit 30aa4e74cf
2 changed files with 2 additions and 2 deletions

View File

@ -85,7 +85,7 @@ func TestRunAll(t *testing.T) {
t.Run(dbt+" Select Core", func(t *testing.T) {
RunSelectCoreMYQL(t, dbt)
})
t.Run(dbt+" Select DbServices", func(t *testing.T) {
t.Run(dbt+" Select Services", func(t *testing.T) {
RunSelectAllMysqlServices(t)
})
t.Run(dbt+" Select Comms", func(t *testing.T) {

View File

@ -49,7 +49,7 @@ func SelectService(id int64) *Service {
func (c *Core) SelectAllServices() ([]*types.Service, error) {
var services []*types.Service
var servs []*types.Service
col := serviceCol().Find().OrderBy("order")
col := serviceCol().Find().OrderBy("order_id")
err := col.All(&services)
if err != nil {
utils.Log(3, fmt.Sprintf("service error: %v", err))