chore(mocks): we should not be sleeping in mocks
@@ -2,7 +2,6 @@ package armhelpers
import (
"fmt"
- "time"
"github.com/Azure/azure-sdk-for-go/arm/authorization"
"github.com/Azure/azure-sdk-for-go/arm/compute"
@@ -167,7 +166,6 @@ func (mc *MockACSEngineClient) DeleteVirtualMachine(resourceGroup, name string,
close(respChan)
}()
errChan <- fmt.Errorf("DeleteVirtualMachine failed")
- time.Sleep(1 * time.Second)
}()
return respChan, errChan
}
@@ -183,7 +181,6 @@ func (mc *MockACSEngineClient) DeleteVirtualMachine(resourceGroup, name string,
}()
errChan <- nil
respChan <- compute.OperationStatusResponse{}
- time.Sleep(1 * time.Second)
}()
return respChan, errChan
}
@@ -210,7 +207,6 @@ func (mc *MockACSEngineClient) DeleteNetworkInterface(resourceGroup, nicName str
close(respChan)
}()
errChan <- fmt.Errorf("DeleteNetworkInterface failed")
- time.Sleep(1 * time.Second)
}()
return respChan, errChan
}
@@ -226,7 +222,6 @@ func (mc *MockACSEngineClient) DeleteNetworkInterface(resourceGroup, nicName str
}()
errChan <- nil
respChan <- autorest.Response{}
- time.Sleep(1 * time.Second)
}()
return respChan, errChan
}
