MCPcopy Index your code
hub / github.com/GoogleCloudPlatform/cloud-sql-proxy / TestWaitCommandFails

Function TestWaitCommandFails

cmd/wait_test.go:59–68  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls 1

invokeProxyCommandFunction · 0.85

Tested by

no test coverage detected