@@ -36,7 +36,8 @@ const (
3636 req1ID = "req1"
3737 req2ID = "req2"
3838 req3ID = "req3"
39- endpoint = "tcp://localhost:5557"
39+ subEndpoint = "tcp://*:5557"
40+ pubEndpoint = "tcp://localhost:5557"
4041)
4142
4243type ActionType int
@@ -203,7 +204,7 @@ var _ = Describe("KV cache", Ordered, func() {
203204 Port : 1234 ,
204205 Model : "model" ,
205206 KVCacheSize : test .cacheSize ,
206- ZMQEndpoint : endpoint ,
207+ ZMQEndpoint : pubEndpoint ,
207208 EventBatchSize : 1 ,
208209 }
209210
@@ -306,7 +307,7 @@ var _ = Describe("KV cache", Ordered, func() {
306307 Port : 1234 ,
307308 Model : "model" ,
308309 KVCacheSize : 4 ,
309- ZMQEndpoint : endpoint ,
310+ ZMQEndpoint : pubEndpoint ,
310311 }
311312
312313 sub , topic := createSub (config )
@@ -415,7 +416,7 @@ var _ = Describe("KV cache", Ordered, func() {
415416 Port : 1234 ,
416417 Model : "model" ,
417418 KVCacheSize : testCase .cacheSize ,
418- ZMQEndpoint : endpoint ,
419+ ZMQEndpoint : pubEndpoint ,
419420 }
420421 blockCache , err := newBlockCache (& config , GinkgoLogr )
421422 Expect (err ).NotTo (HaveOccurred ())
@@ -531,7 +532,7 @@ func createSub(config *common.Configuration) (*zmq.Socket, string) {
531532 Expect (err ).NotTo (HaveOccurred ())
532533 sub , err := zctx .NewSocket (zmq .SUB )
533534 Expect (err ).NotTo (HaveOccurred ())
534- err = sub .Bind (endpoint )
535+ err = sub .Bind (subEndpoint )
535536 Expect (err ).NotTo (HaveOccurred ())
536537 topic := createTopic (config )
537538 err = sub .SetSubscribe (topic )
0 commit comments