From c37c7c57a70693227d32c84cf7ac1fadf7d1b74d Mon Sep 17 00:00:00 2001
From: Joe Zou <yixian.zou@gmail.com>
Date: Sat, 15 Feb 2020 12:36:03 +0800
Subject: [PATCH] fix test case

---
 cluster/router/chain/chain.go | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/cluster/router/chain/chain.go b/cluster/router/chain/chain.go
index 8d793bd78..26d52ecf5 100644
--- a/cluster/router/chain/chain.go
+++ b/cluster/router/chain/chain.go
@@ -52,7 +52,7 @@ type RouterChain struct {
 func (c RouterChain) Route(invoker []protocol.Invoker, url *common.URL, invocation protocol.Invocation) []protocol.Invoker {
 	finalInvokers := invoker
 	l := len(c.routers)
-	rs := make([]router.Router, l, math.Ceil(float64(l)*1.2))
+	rs := make([]router.Router, l, int(math.Ceil(float64(l)*1.2)))
 	c.mutex.RLock()
 	copy(rs, c.routers)
 	c.mutex.RUnlock()
-- 
GitLab