Skip to content
This repository has been archived by the owner on Feb 7, 2018. It is now read-only.

Commit

Permalink
kc: simplify test for MatchPrefix
Browse files Browse the repository at this point in the history
  • Loading branch information
fsouza committed Jan 12, 2013
1 parent a344190 commit aa81be6
Showing 1 changed file with 2 additions and 8 deletions.
10 changes: 2 additions & 8 deletions kc/kc_base_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -180,14 +180,8 @@ func TestMatchPrefix(t *testing.T) {
"cache/news/3",
"cache/news/4",
}
input := []string{
"<html>news 1</html>",
"<html>news 2</html>",
"<html>news 3</html>",
"<html>news 4</html>",
}
for i, v := range input {
db.Set(keys[i], v)
for _, k := range keys {
db.Set(k, "something")
}
var tests = []struct {
max int64
Expand Down

0 comments on commit aa81be6

Please sign in to comment.