Skip to content

Commit

Permalink
feat: add networkTopology e2e test
Browse files Browse the repository at this point in the history
Signed-off-by: huangmin <2107139596@qq.com>
  • Loading branch information
MinH-09 committed Apr 3, 2024
1 parent 4f9dba8 commit fa09ed7
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion test/e2e/network_topology_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,9 @@ func checkNetworkTopologyUpdated() bool {
probedCountKey = strings.Split(string(out), "\n")[i]
probedCountOut, err := redisPod.Command("redis-cli", "-a", "dragonfly", "-n", "3", "GET", probedCountKey).CombinedOutput()
Expect(err).NotTo(HaveOccurred())
if strings.Split(string(probedCountOut), "\n")[1] == "1" {
probedCount, err := strconv.Atoi(strings.Split(string(probedCountOut), "\n")[1])
Expect(err).NotTo(HaveOccurred())
if probedCount <= 1 && probedCount >= 50 {
return false
}
}
Expand Down

0 comments on commit fa09ed7

Please sign in to comment.