@@ -51,21 +51,21 @@ var _ = Describe("stembuild construct", func() {
5151 session := helpers .Stembuild (stembuildExecutable , "construct" , "-vm-ip" , conf .TargetIP , "-vm-username" , conf .VMUsername , "-vm-password" , conf .VMPassword , "-vcenter-url" , conf .VCenterURL , "-vcenter-username" , conf .VCenterUsername , "-vcenter-password" , conf .VCenterPassword , "-vm-inventory-path" , conf .VMInventoryPath , "-vcenter-ca-certs" , conf .VCenterCACert )
5252
5353 Eventually (session , shutdownTimeout ).Should (Exit (0 ))
54- Eventually (session .Out , constructOutputTimeout ).Should (Say (`mock stemcell automation script executed` ))
54+ Eventually (session .Out ). WithTimeout ( constructOutputTimeout ).Should (Say (`mock stemcell automation script executed` ))
5555 })
5656
5757 It ("executes post-reboot automation script" , func () {
5858 session := helpers .Stembuild (stembuildExecutable , "construct" , "-vm-ip" , conf .TargetIP , "-vm-username" , conf .VMUsername , "-vm-password" , conf .VMPassword , "-vcenter-url" , conf .VCenterURL , "-vcenter-username" , conf .VCenterUsername , "-vcenter-password" , conf .VCenterPassword , "-vm-inventory-path" , conf .VMInventoryPath , "-vcenter-ca-certs" , conf .VCenterCACert )
5959
6060 Eventually (session , shutdownTimeout ).Should (Exit (0 ))
61- Eventually (session .Out , constructOutputTimeout * 5 ).Should (Say (`mock stemcell automation post-reboot script executed` ))
61+ Eventually (session .Out ). WithTimeout ( constructOutputTimeout * 5 ).Should (Say (`mock stemcell automation post-reboot script executed` ))
6262 })
6363
6464 It ("extracts the WinRM BOSH powershell script and executes it successfully on the guest VM" , func () {
6565 session := helpers .Stembuild (stembuildExecutable , "construct" , "-vm-ip" , conf .TargetIP , "-vm-username" , conf .VMUsername , "-vm-password" , conf .VMPassword , "-vcenter-url" , conf .VCenterURL , "-vcenter-username" , conf .VCenterUsername , "-vcenter-password" , conf .VCenterPassword , "-vm-inventory-path" , conf .VMInventoryPath , "-vcenter-ca-certs" , conf .VCenterCACert )
6666
6767 Eventually (session , shutdownTimeout ).Should (Exit (0 ))
68- Eventually (session .Out , constructOutputTimeout ).Should (Say (`Attempting to enable WinRM on the guest vm...WinRm enabled on the guest VM` ))
68+ Eventually (session .Out ). WithTimeout ( constructOutputTimeout ).Should (Say (`Attempting to enable WinRM on the guest vm...WinRm enabled on the guest VM` ))
6969 })
7070 })
7171
0 commit comments