MCPcopy Create free account
hub / github.com/GoogleCloudPlatform/cloud-sql-proxy / TestShutdownCommandFails

Function TestShutdownCommandFails

cmd/shutdown_test.go:58–67  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

56}
57
58func TestShutdownCommandFails(t *testing.T) {
59 _, err := invokeProxyCommand([]string{
60 "shutdown",
61 // assuming default host and port
62 "--wait=100ms",
63 })
64 if err == nil {
65 t.Fatal("shutdown should fail when endpoint does not respond")
66 }
67}

Callers

nothing calls this directly

Calls 1

invokeProxyCommandFunction · 0.85

Tested by

no test coverage detected