diff --git a/.travis.yml b/.travis.yml index 36be6a3b..62104da2 100644 --- a/.travis.yml +++ b/.travis.yml @@ -6,11 +6,11 @@ env: jobs: include: - - name: Documentation test - language: go - go: 1.12.x - script: - - docker-compose -f .ci/doc/docker-compose.yml run doc-tests node index + - name: Documentation test + language: go + go: 1.12.x + script: + - docker-compose -f .ci/doc/docker-compose.yml run doc-tests node index # ----------------------------------------------- # Linux amd64 diff --git a/kuzzle/kuzzle.go b/kuzzle/kuzzle.go index 9a4155ae..b417a44f 100644 --- a/kuzzle/kuzzle.go +++ b/kuzzle/kuzzle.go @@ -33,7 +33,7 @@ import ( ) const ( - version = "2.0.0" + version = "2.0.1" MAX_CONNECT_RETRY = 10 ) diff --git a/kuzzle/query_test.go b/kuzzle/query_test.go index 2c0b1010..81431e86 100644 --- a/kuzzle/query_test.go +++ b/kuzzle/query_test.go @@ -96,7 +96,7 @@ func TestQueryWithOptions(t *testing.T) { func TestQueryWithVolatile(t *testing.T) { var k *kuzzle.Kuzzle - var volatileData = types.VolatileData(`{"modifiedBy":"awesome me","reason":"it needed to be modified","sdkVersion":"2.0.0"}`) + var volatileData = types.VolatileData(`{"modifiedBy":"awesome me","reason":"it needed to be modified","sdkVersion":"2.0.1"}`) c := &internal.MockedConnection{ MockSend: func(query []byte, options types.QueryOptions) *types.KuzzleResponse { diff --git a/protocol/websocket/web_socket.go b/protocol/websocket/web_socket.go index 97a158b5..2c195baf 100644 --- a/protocol/websocket/web_socket.go +++ b/protocol/websocket/web_socket.go @@ -94,7 +94,7 @@ func NewWebSocket(host string, options types.Options) *WebSocket { //Connect connects to a kuzzle instance func (ws *WebSocket) Connect() (bool, error) { - if ws.state != state.Offline { + if ws.state != state.Offline && ws.state != state.Disconnected && ws.state != state.Error { return false, nil }