mirror of https://github.com/ceph/go-ceph
test: check numeric osd id
Signed-off-by: Noah Watkins <noahwatkins@gmail.com>
This commit is contained in:
parent
e2332ecd37
commit
a5f7bb1350
|
@ -207,6 +207,13 @@ func TestPingMonitor(t *testing.T) {
|
|||
return
|
||||
}
|
||||
|
||||
// mon id that should work with micro-osd.sh
|
||||
reply, err = conn.PingMonitor("0")
|
||||
if err == nil {
|
||||
assert.NotEqual(t, reply, "")
|
||||
return
|
||||
}
|
||||
|
||||
// try to use a hostname as the monitor id
|
||||
mon_addr, _ := conn.GetConfigOption("mon_host")
|
||||
hosts, _ := net.LookupAddr(mon_addr)
|
||||
|
|
Loading…
Reference in New Issue