@@ -10,7 +10,7 @@ import (
10
10
"github.com/cloudfoundry-incubator/bbs/db"
11
11
"github.com/cloudfoundry-incubator/bbs/models"
12
12
"github.com/cloudfoundry-incubator/locket"
13
- oldmodels "github.com/cloudfoundry-incubator/runtime-schema/models "
13
+ "github.com/cloudfoundry-incubator/locket/presence "
14
14
. "github.com/onsi/ginkgo"
15
15
. "github.com/onsi/gomega"
16
16
"github.com/pivotal-golang/clock/fakeclock"
@@ -27,8 +27,8 @@ var _ = Describe("CellsLoader", func() {
27
27
locketClient locket.Client
28
28
presence1 ifrit.Process
29
29
presence2 ifrit.Process
30
- firstCellPresence oldmodels .CellPresence
31
- secondCellPresence oldmodels .CellPresence
30
+ firstCellPresence presence .CellPresence
31
+ secondCellPresence presence .CellPresence
32
32
logger * lagertest.TestLogger
33
33
)
34
34
@@ -37,8 +37,8 @@ var _ = Describe("CellsLoader", func() {
37
37
clock = fakeclock .NewFakeClock (time .Now ())
38
38
locketClient = locket .NewClient (consulSession , clock , logger )
39
39
40
- firstCellPresence = oldmodels .NewCellPresence ("first-rep" , "1.2.3.4" , "the-zone" , oldmodels .NewCellCapacity (128 , 1024 , 3 ), []string {}, []string {})
41
- secondCellPresence = oldmodels .NewCellPresence ("second-rep" , "4.5.6.7" , "the-zone" , oldmodels .NewCellCapacity (128 , 1024 , 3 ), []string {}, []string {})
40
+ firstCellPresence = presence .NewCellPresence ("first-rep" , "1.2.3.4" , "the-zone" , presence .NewCellCapacity (128 , 1024 , 3 ), []string {}, []string {})
41
+ secondCellPresence = presence .NewCellPresence ("second-rep" , "4.5.6.7" , "the-zone" , presence .NewCellCapacity (128 , 1024 , 3 ), []string {}, []string {})
42
42
43
43
presence1 = nil
44
44
presence2 = nil
@@ -59,7 +59,7 @@ var _ = Describe("CellsLoader", func() {
59
59
cellsLoader = consulDB .NewCellsLoader (logger )
60
60
presence1 = ifrit .Invoke (locketClient .NewCellPresence (firstCellPresence , retryInterval ))
61
61
62
- Eventually (func () ([]oldmodels .CellPresence , error ) {
62
+ Eventually (func () ([]presence .CellPresence , error ) {
63
63
return locketClient .Cells ()
64
64
}).Should (HaveLen (1 ))
65
65
@@ -76,7 +76,7 @@ var _ = Describe("CellsLoader", func() {
76
76
BeforeEach (func () {
77
77
presence2 = ifrit .Invoke (locketClient .NewCellPresence (secondCellPresence , retryInterval ))
78
78
79
- Eventually (func () ([]oldmodels .CellPresence , error ) {
79
+ Eventually (func () ([]presence .CellPresence , error ) {
80
80
return locketClient .Cells ()
81
81
}).Should (HaveLen (2 ))
82
82
})
0 commit comments