forked from quic-go/quic-go
rename the SERVER_BUSY error to CONNECTION_REFUSED
This commit is contained in:
@@ -311,7 +311,7 @@ var _ = Describe("Handshake tests", func() {
|
||||
|
||||
_, err := dial()
|
||||
Expect(err).To(HaveOccurred())
|
||||
Expect(err.(*qerr.QuicError).ErrorCode).To(Equal(qerr.ServerBusy))
|
||||
Expect(err.(*qerr.QuicError).ErrorCode).To(Equal(qerr.ConnectionRefused))
|
||||
|
||||
// now accept one session, freeing one spot in the queue
|
||||
_, err = server.Accept(context.Background())
|
||||
@@ -324,7 +324,7 @@ var _ = Describe("Handshake tests", func() {
|
||||
|
||||
_, err = dial()
|
||||
Expect(err).To(HaveOccurred())
|
||||
Expect(err.(*qerr.QuicError).ErrorCode).To(Equal(qerr.ServerBusy))
|
||||
Expect(err.(*qerr.QuicError).ErrorCode).To(Equal(qerr.ConnectionRefused))
|
||||
})
|
||||
|
||||
It("removes closed connections from the accept queue", func() {
|
||||
@@ -340,7 +340,7 @@ var _ = Describe("Handshake tests", func() {
|
||||
|
||||
_, err = dial()
|
||||
Expect(err).To(HaveOccurred())
|
||||
Expect(err.(*qerr.QuicError).ErrorCode).To(Equal(qerr.ServerBusy))
|
||||
Expect(err.(*qerr.QuicError).ErrorCode).To(Equal(qerr.ConnectionRefused))
|
||||
|
||||
// Now close the one of the session that are waiting to be accepted.
|
||||
// This should free one spot in the queue.
|
||||
@@ -354,7 +354,7 @@ var _ = Describe("Handshake tests", func() {
|
||||
|
||||
_, err = dial()
|
||||
Expect(err).To(HaveOccurred())
|
||||
Expect(err.(*qerr.QuicError).ErrorCode).To(Equal(qerr.ServerBusy))
|
||||
Expect(err.(*qerr.QuicError).ErrorCode).To(Equal(qerr.ConnectionRefused))
|
||||
})
|
||||
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user