Commit c1a7c85a authored by Kirill Smelkov's avatar Kirill Smelkov

.

parent ba14daf7
...@@ -221,6 +221,7 @@ func (c *Client) talkMaster(ctx context.Context) (err error) { ...@@ -221,6 +221,7 @@ func (c *Client) talkMaster(ctx context.Context) (err error) {
for { for {
err := c.talkMaster1(ctx) err := c.talkMaster1(ctx)
log.Warning(ctx, err) // XXX Warning ok? -> Error? log.Warning(ctx, err) // XXX Warning ok? -> Error?
// XXX if err == "reject identification / protocol error" -> shutdown client
// TODO if err = shutdown -> return // TODO if err = shutdown -> return
......
...@@ -227,6 +227,8 @@ func withNEO(t *testing.T, f func(t *testing.T, nsrv NEOSrv, ndrv *Client), optv ...@@ -227,6 +227,8 @@ func withNEO(t *testing.T, f func(t *testing.T, nsrv NEOSrv, ndrv *Client), optv
}, optv...) }, optv...)
} }
// XXX connect with wrong clusterName -> rejected
func TestEmptyDB(t *testing.T) { func TestEmptyDB(t *testing.T) {
withNEO(t, func(t *testing.T, nsrv NEOSrv, n *Client) { withNEO(t, func(t *testing.T, nsrv NEOSrv, n *Client) {
xtesting.DrvTestEmptyDB(t, n) xtesting.DrvTestEmptyDB(t, n)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment