Skip to content

Unit test wrong channel type

Igor Drozdov requested to merge id-test-for-connection into main

Related issue: #498 (closed)

!463 (merged) extracted connections into their own file, this merge request introduces a small test that verifies the rejection data when a passed channel has the wrong type.

Due to the concurrent nature of that part of the app: https://gitlab.com/gitlab-org/gitlab-shell/blob/d144db2951030a44ce787181ed8c67477dadb951/internal/sshd/connection.go#L69, this code calls the handle function asynchronously and introduces a wait group in order to synchronise the calls.

Merge request reports