mirror of
https://github.com/aljazceru/crawler_v2.git
synced 2025-12-17 07:24:21 +01:00
changed redis address in tests
This commit is contained in:
@@ -24,7 +24,7 @@ func TestWalks(t *testing.T) {
|
|||||||
fmt.Println("Testing the walks consistency")
|
fmt.Println("Testing the walks consistency")
|
||||||
fmt.Printf("-----------------------------\n\n")
|
fmt.Printf("-----------------------------\n\n")
|
||||||
|
|
||||||
db := redb.New(&redis.Options{Addr: "localhost:6380"})
|
db := redb.New(&redis.Options{Addr: "localhost:6379"})
|
||||||
|
|
||||||
var iteration int
|
var iteration int
|
||||||
var limit int = 10000
|
var limit int = 10000
|
||||||
@@ -80,7 +80,7 @@ func TestPagerank(t *testing.T) {
|
|||||||
fmt.Println("---------------------------------")
|
fmt.Println("---------------------------------")
|
||||||
fmt.Println("Testing the pagerank distribution")
|
fmt.Println("Testing the pagerank distribution")
|
||||||
|
|
||||||
db := redb.New(&redis.Options{Addr: "localhost:6380"})
|
db := redb.New(&redis.Options{Addr: "localhost:6379"})
|
||||||
nodes, err := db.AllNodes(ctx)
|
nodes, err := db.AllNodes(ctx)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
t.Fatal(err)
|
t.Fatal(err)
|
||||||
|
|||||||
Reference in New Issue
Block a user