Browse Source

dont copy value with mutex inside

Chris Bannister 9 years ago
parent
commit
3f7ef971b1
1 changed files with 1 additions and 1 deletions
  1. 1 1
      policies_test.go

+ 1 - 1
policies_test.go

@@ -161,7 +161,7 @@ func TestRoundRobinNilHostInfo(t *testing.T) {
 	} else if v := next.Info(); v == nil {
 		t.Fatal("got nil HostInfo")
 	} else if v.HostID() != host.HostID() {
-		t.Fatalf("expected host %v got %v", host, *v)
+		t.Fatalf("expected host %v got %v", host, v)
 	}
 
 	next = iter()