func Test_RecoverJobs_EmptyActiveSagas(t *testing.T) {
	mockCtrl := gomock.NewController(t)
	defer mockCtrl.Finish()
	sc, slog := makeMockSagaCoord(mockCtrl)
	slog.EXPECT().GetActiveSagas().Return([]string{}, nil)
	addJobCh := make(chan jobAddedMsg, 1)
	recoverJobs(sc, addJobCh)
	select {
	case msg := <-addJobCh:
		t.Errorf("unexpected message added to addJobCh %v", msg)
	default:
	}
}
Call to GetActiveSagas returns empty list
package server
import (
	"errors"
	"github.com/golang/mock/gomock"
	"github.com/twitter/scoot/saga"
	"github.com/twitter/scoot/scheduler/domain"
	"testing"
	"time"
)
func makeMockSagaCoord(mockCtrl *gomock.Controller) (saga.SagaCoordinator, *saga.MockSagaLog) {
	sagaLogMock := saga.NewMockSagaLog(mockCtrl)
	sagaCoord := saga.MakeSagaCoordinator(sagaLogMock, nil)
	return sagaCoord, sagaLogMock
}
func Test_RecoverJobs_NilActiveSagas(t *testing.T) {
	mockCtrl := gomock.NewController(t)
	defer mockCtrl.Finish()
	sc, slog := makeMockSagaCoord(mockCtrl)
	slog.EXPECT().GetActiveSagas().Return(nil, nil)
	addJobCh := make(chan jobAddedMsg, 1)
	recoverJobs(sc, addJobCh)
	select {
	case msg := <-addJobCh:
		t.Errorf("unexpected message added to addJobCh %v", msg)
	default:
	}
}