rename the SERVER_BUSY error to CONNECTION_REFUSED

This commit is contained in:
Marten Seemann
2020-06-10 12:13:40 +07:00
parent 05514ab375
commit 2e9b92ab69
5 changed files with 13 additions and 13 deletions

View File

@@ -100,7 +100,7 @@ var _ = Describe("Types", func() {
It("has a string representation for transport errors", func() {
Expect(transportError(qerr.NoError).String()).To(Equal("no_error"))
Expect(transportError(qerr.InternalError).String()).To(Equal("internal_error"))
Expect(transportError(qerr.ServerBusy).String()).To(Equal("server_busy"))
Expect(transportError(qerr.ConnectionRefused).String()).To(Equal("connection_refused"))
Expect(transportError(qerr.FlowControlError).String()).To(Equal("flow_control_error"))
Expect(transportError(qerr.StreamLimitError).String()).To(Equal("stream_limit_error"))
Expect(transportError(qerr.StreamStateError).String()).To(Equal("stream_state_error"))