update
All checks were successful
Build and Publish / BuildAndDeployAmd64 (push) Successful in 28s
Build and Publish / BuildAndDeploy (push) Successful in 2m13s

This commit is contained in:
matst80
2024-11-12 18:05:41 +01:00
parent 170a51fad9
commit 3f8cdec9af
4 changed files with 132 additions and 118 deletions

View File

@@ -25,13 +25,7 @@ func TestConnection(t *testing.T) {
if err != nil {
t.Errorf("Error adding remote: %v", err)
}
allHosts, err := pool.Negotiate([]string{"kalle", "pelle"})
if err != nil {
t.Errorf("Error negotiating: %v", err)
}
if len(allHosts) != 0 {
t.Errorf("Expected 0 host, (host should be known) got %d", len(allHosts))
}
go pool.Negotiate()
data, err := pool.Get(ToCartId("kalle"))
if err != nil {