Rename test to be more descriptive

The name `TestServiceWaiterCommand_Execute` was and old name the command was
renamed to `HealthCheck`.

Add checking of an unhandled error.
parent faae8e78
Pipeline #52152532 passed with stages
in 45 minutes and 55 seconds
......@@ -34,7 +34,7 @@ func TestServiceWaiterCommand_NoEnvironmentVariables(t *testing.T) {
})
}
func TestServiceWaiterCommand_Execute(t *testing.T) {
func TestHealthCheckCommand_Execute(t *testing.T) {
cases := []struct {
name string
expectedConnect bool
......@@ -59,6 +59,7 @@ func TestServiceWaiterCommand_Execute(t *testing.T) {
require.NoError(t, err)
err = os.Setenv("SERVICE_TCP_PORT", strconv.Itoa(listener.Addr().(*net.TCPAddr).Port))
require.NoError(t, err)
// If we don't expect to connect we close the listener.
if !c.expectedConnect {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment