mirror of
https://github.com/grafana/grafana.git
synced 2024-11-30 12:44:10 -06:00
14 lines
314 B
Go
14 lines
314 B
Go
package backgroundsvcs
|
|
|
|
import (
|
|
"errors"
|
|
"testing"
|
|
|
|
"github.com/stretchr/testify/require"
|
|
)
|
|
|
|
func TestBackgroundServiceRegistry_GetServices(t *testing.T) {
|
|
s := NewBackgroundServiceRegistry(newTestService("A", nil, false), newTestService("B", errors.New("boom"), false))
|
|
require.Len(t, s.GetServices(), 2)
|
|
}
|