Example #1
0
			})
		})
	})

	Describe("Processing multiple apps", func() {
		var (
			otherApp      appfixture.AppFixture
			yetAnotherApp appfixture.AppFixture
			undesiredApp  appfixture.AppFixture
		)

		BeforeEach(func() {
			otherApp = dea.GetApp(1)
			undesiredApp = dea.GetApp(2)
			yetAnotherApp = dea.GetApp(3)
			undesiredApp.AppGuid = app.AppGuid

			store.SyncDesiredState(
				app.DesiredState(1),
				otherApp.DesiredState(3),
				yetAnotherApp.DesiredState(2),
			)
			store.SyncHeartbeats(dea.HeartbeatWith(
				app.InstanceAtIndex(0).Heartbeat(),
				app.InstanceAtIndex(1).Heartbeat(),
				undesiredApp.InstanceAtIndex(0).Heartbeat(),
				otherApp.InstanceAtIndex(0).Heartbeat(),
				otherApp.InstanceAtIndex(2).Heartbeat(),
			))
		})