mirror of
https://github.com/etcd-io/etcd.git
synced 2024-09-27 06:25:44 +00:00
v2http: fix tests to use new clockwork
This commit is contained in:
parent
3f0f4bfee7
commit
f91f7dfb91
@ -736,14 +736,14 @@ func TestServeMembersCreate(t *testing.T) {
|
|||||||
t.Errorf("cid = %s, want %s", gcid, wcid)
|
t.Errorf("cid = %s, want %s", gcid, wcid)
|
||||||
}
|
}
|
||||||
|
|
||||||
wb := `{"id":"2a86a83729b330d5","name":"","peerURLs":["http://127.0.0.1:1"],"clientURLs":[]}` + "\n"
|
wb := `{"id":"c29b431f04be0bc7","name":"","peerURLs":["http://127.0.0.1:1"],"clientURLs":[]}` + "\n"
|
||||||
g := rw.Body.String()
|
g := rw.Body.String()
|
||||||
if g != wb {
|
if g != wb {
|
||||||
t.Errorf("got body=%q, want %q", g, wb)
|
t.Errorf("got body=%q, want %q", g, wb)
|
||||||
}
|
}
|
||||||
|
|
||||||
wm := membership.Member{
|
wm := membership.Member{
|
||||||
ID: 3064321551348478165,
|
ID: 14022875665250782151,
|
||||||
RaftAttributes: membership.RaftAttributes{
|
RaftAttributes: membership.RaftAttributes{
|
||||||
PeerURLs: []string{"http://127.0.0.1:1"},
|
PeerURLs: []string{"http://127.0.0.1:1"},
|
||||||
},
|
},
|
||||||
|
Loading…
x
Reference in New Issue
Block a user