Skip to content

Commit

Permalink
BUGFIX: Relationship test fails with index out of range.
Browse files Browse the repository at this point in the history
  • Loading branch information
s-rah committed Oct 29, 2016
1 parent a0484d4 commit 45b2de5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion crawldb/crawldb_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ func TestRelationship(t *testing.T) {
// DB could return results in any order.
if result[0].Onion == "example.onion" && result[1].Onion == "example2.onion" {
// OK
} else if result[1].Onion == "example.onion" && result[2].Onion == "example2.onion" {
} else if result[1].Onion == "example.onion" && result[0].Onion == "example2.onion" {
// OK
} else {
t.Errorf("Relationships returned wrong onions %v", result)
Expand Down

0 comments on commit 45b2de5

Please sign in to comment.