Skip to content

Commit f1f2405

Browse files
committed
bbs test
1 parent 86b19c0 commit f1f2405

21 files changed

+43
-308
lines changed

controllers/evacuation_controller_test.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -261,7 +261,7 @@ var _ = Describe("Evacuation Controller", func() {
261261

262262
It("unclaims and reauctions the lrp", func() {
263263
Expect(fakeActualLRPDB.UnclaimActualLRPCallCount()).To(Equal(1))
264-
_, _, key := fakeActualLRPDB.UnclaimActualLRPArgsForCall(0)
264+
_, _, _, key := fakeActualLRPDB.UnclaimActualLRPArgsForCall(0)
265265
Expect(key).To(Equal(lrpKey))
266266

267267
Expect(fakeDesiredLRPDB.DesiredLRPSchedulingInfoByProcessGuidCallCount()).To(Equal(1))
@@ -1143,7 +1143,7 @@ var _ = Describe("Evacuation Controller", func() {
11431143

11441144
It("unclaims the lrp and requests an auction", func() {
11451145
Expect(fakeActualLRPDB.UnclaimActualLRPCallCount()).To(Equal(1))
1146-
_, _, lrpKey := fakeActualLRPDB.UnclaimActualLRPArgsForCall(0)
1146+
_, _, _, lrpKey := fakeActualLRPDB.UnclaimActualLRPArgsForCall(0)
11471147
Expect(lrpKey.ProcessGuid).To(Equal(actual.ProcessGuid))
11481148
Expect(lrpKey.Index).To(Equal(actual.Index))
11491149

controllers/lrp_convergence_controller_test.go

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -262,8 +262,9 @@ var _ = Describe("LRP Convergence Controllers", func() {
262262

263263
It("transition the LRP to UNCLAIMED state", func() {
264264
Eventually(fakeLRPDB.UnclaimActualLRPCallCount).Should(Equal(1))
265-
_, _, actualKey := fakeLRPDB.UnclaimActualLRPArgsForCall(0)
265+
_, _, isStale, actualKey := fakeLRPDB.UnclaimActualLRPArgsForCall(0)
266266
Expect(actualKey).To(Equal(key))
267+
Expect(isStale).To(BeTrue())
267268
})
268269

269270
It("emits an LRPChanged event", func() {
@@ -541,6 +542,8 @@ var _ = Describe("LRP Convergence Controllers", func() {
541542

542543
It("unclaims the suspect replacement lrp", func() {
543544
Expect(fakeLRPDB.UnclaimActualLRPCallCount()).To(Equal(1))
545+
_, _, isStale, _ := fakeLRPDB.UnclaimActualLRPArgsForCall(0)
546+
Expect(isStale).To(BeFalse())
544547
})
545548

546549
It("does not emit change events", func() {

db/dbfakes/fake_actual_lrpdb.go

Lines changed: 12 additions & 34 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

db/dbfakes/fake_db.go

Lines changed: 12 additions & 96 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

db/dbfakes/fake_desired_lrpdb.go

Lines changed: 0 additions & 16 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

db/dbfakes/fake_domain_db.go

Lines changed: 0 additions & 4 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

db/dbfakes/fake_encryption_db.go

Lines changed: 0 additions & 6 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

db/dbfakes/fake_evacuation_db.go

Lines changed: 0 additions & 4 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)