continue to fix existing tests.
@@ -28,6 +28,7 @@ type TrackerSuite struct {
fakeEngine *buildsfakes.FakeEngine
tracker *builds.Tracker
+ buildChan chan db.Build
}
func TestTracker(t *testing.T) {
@@ -39,10 +40,12 @@ func TestTracker(t *testing.T) {
func (s *TrackerSuite) SetupTest() {
s.fakeBuildFactory = new(dbfakes.FakeBuildFactory)
s.fakeEngine = new(buildsfakes.FakeEngine)
+ s.buildChan = make(chan db.Build, 10)
s.tracker = builds.NewTracker(
s.fakeBuildFactory,
s.fakeEngine,
+ s.buildChan,
)
}
