mirror of
https://github.com/moby/moby.git
synced 2026-01-11 18:51:37 +00:00
api/types: move Ping and swarm.Status to client
The API does not produce these as a response; the fields in the Ping struct, including the Swarm status are propagated from headers returned by the /_ping endpoint. Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
This commit is contained in:
@@ -2235,7 +2235,7 @@ func (s *DockerDaemonSuite) TestFailedPluginRemove(c *testing.T) {
|
||||
d.Restart(c)
|
||||
ctx, cancel = context.WithTimeout(testutil.GetContext(c), 30*time.Second)
|
||||
defer cancel()
|
||||
_, err = apiClient.Ping(ctx)
|
||||
_, err = apiClient.Ping(ctx, client.PingOptions{})
|
||||
assert.NilError(c, err)
|
||||
|
||||
_, err = apiClient.PluginInspect(ctx, name, client.PluginInspectOptions{})
|
||||
|
||||
Reference in New Issue
Block a user