From b90fc0b27ac7baa61c7d45516fd8cfea9241d0da Mon Sep 17 00:00:00 2001 From: jiawen <3135243575@qq.com> Date: Thu, 21 Apr 2022 01:00:19 +0800 Subject: [PATCH] fix function TestConsistency --- consistenthash/consistenthash_test.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/consistenthash/consistenthash_test.go b/consistenthash/consistenthash_test.go index 1a37fd7f..8288abb6 100644 --- a/consistenthash/consistenthash_test.go +++ b/consistenthash/consistenthash_test.go @@ -78,9 +78,9 @@ func TestConsistency(t *testing.T) { hash2.Add("Becky", "Ben", "Bobby") - if hash1.Get("Ben") != hash2.Get("Ben") || - hash1.Get("Bob") != hash2.Get("Bob") || - hash1.Get("Bonny") != hash2.Get("Bonny") { + if hash1.Get("0Bill") != hash2.Get("0Bill") || + hash1.Get("0Bob") != hash2.Get("0Bob") || + hash1.Get("0Bonny") != hash2.Get("0Bonny") { t.Errorf("Direct matches should always return the same entry") }