|
|
@@ -20,6 +20,7 @@ import (
|
|
|
"encoding/json"
|
|
|
"fmt"
|
|
|
"math/rand"
|
|
|
+ "path"
|
|
|
"reflect"
|
|
|
"sync"
|
|
|
"testing"
|
|
|
@@ -967,7 +968,7 @@ func TestPublish(t *testing.T) {
|
|
|
t.Errorf("method = %s, want PUT", r.Method)
|
|
|
}
|
|
|
wm := Member{ID: 1, Attributes: Attributes{Name: "node1", ClientURLs: []string{"http://a", "http://b"}}}
|
|
|
- if w := memberStoreKey(wm.ID) + attributesSuffix; r.Path != w {
|
|
|
+ if w := path.Join(memberStoreKey(wm.ID), attributesSuffix); r.Path != w {
|
|
|
t.Errorf("path = %s, want %s", r.Path, w)
|
|
|
}
|
|
|
var gattr Attributes
|