浏览代码

TestContainerInspectNode: document test as being for classic swarm

Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
Sebastiaan van Stijn 5 年之前
父节点
当前提交
b5c22f4fcf
共有 1 个文件被更改,包括 2 次插入0 次删除
  1. 2 0
      client/container_inspect_test.go

+ 2 - 0
client/container_inspect_test.go

@@ -88,6 +88,8 @@ func TestContainerInspect(t *testing.T) {
 	}
 	}
 }
 }
 
 
+// TestContainerInspectNode tests that the "Node" field is included in the "inspect"
+// output. This information is only present when connected to a Swarm standalone API.
 func TestContainerInspectNode(t *testing.T) {
 func TestContainerInspectNode(t *testing.T) {
 	client := &Client{
 	client := &Client{
 		client: newMockClient(func(req *http.Request) (*http.Response, error) {
 		client: newMockClient(func(req *http.Request) (*http.Response, error) {