Skip to content

Commit 63ef84a

Browse files
committed
Cleanup of test file + TODO
1 parent 25c0590 commit 63ef84a

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

2025/consistent-hashing/consistenthasher_test.go

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ func generateRandomString(rnd *rand.Rand, length int) string {
2323
return string(b)
2424
}
2525

26-
func TestSmokeConsistentHasher(t *testing.T) {
26+
func TestSmoke(t *testing.T) {
2727
ch := NewConsistentHasher(1024)
2828

2929
// Add nodes named "node-N"
@@ -40,7 +40,7 @@ func TestSmokeConsistentHasher(t *testing.T) {
4040
ch.FindNodeFor(s)
4141
}
4242

43-
func TestConsistentHasher(t *testing.T) {
43+
func TestFindsCorrectNode(t *testing.T) {
4444
rnd := makeLoggedRand(t)
4545
ch := NewConsistentHasher(1024 * 1024)
4646

@@ -90,3 +90,6 @@ func TestConsistentHasher(t *testing.T) {
9090
}
9191
}
9292
}
93+
94+
// TODO: tests for consistency - (same nodes assigned after nodes are added,
95+
// etc)

0 commit comments

Comments
 (0)