Skip to content

Commit

Permalink
fix: clickhouse_test - return status 503 when there are no live click…
Browse files Browse the repository at this point in the history
…house servers
  • Loading branch information
splichy committed Nov 16, 2020
1 parent 032f190 commit dcc2f86
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion clickhouse_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ func TestClickhouse_SendQuery(t *testing.T) {
c.GetNextServer()
c.Servers[0].Bad = true
_, status, err := c.SendQuery(&ClickhouseRequest{})
assert.Equal(t, 0, status)
assert.Equal(t, 503, status)
assert.True(t, errors.Is(err, ErrNoServers))
}

Expand Down

0 comments on commit dcc2f86

Please sign in to comment.