/* * Copyright 2014 VMware, Inc. All rights reserved. Licensed under the Apache v2 License. */ package govcd import ( . "gopkg.in/check.v1" ) func (s *S) Test_WaitTaskCompletion(c *C) { testServer.Response(200, nil, taskExample) task, err := s.vapp.Deploy() _ = testServer.WaitRequest() testServer.Flush() c.Assert(err, IsNil) testServer.Response(200, nil, taskExample) err = task.WaitTaskCompletion() _ = testServer.WaitRequest() testServer.Flush() c.Assert(err, IsNil) } var taskExample = ` 100
`