skip tests that create servers if 'short' build flag provided
diff --git a/acceptance/openstack/compute/v2/servers_test.go b/acceptance/openstack/compute/v2/servers_test.go
index 67b1b46..6bdc9e9 100644
--- a/acceptance/openstack/compute/v2/servers_test.go
+++ b/acceptance/openstack/compute/v2/servers_test.go
@@ -63,6 +63,10 @@
}
func createServer(t *testing.T, client *gophercloud.ServiceClient, choices *ComputeChoices) (*servers.Server, error) {
+ if testing.Short(){
+ t.Skip("Skipping test that requires server creation in short mode.")
+ }
+
var network networks.Network
networkingClient, err := networkingClient()
diff --git a/acceptance/rackspace/compute/v2/servers_test.go b/acceptance/rackspace/compute/v2/servers_test.go
index 6247c26..c3465cd 100644
--- a/acceptance/rackspace/compute/v2/servers_test.go
+++ b/acceptance/rackspace/compute/v2/servers_test.go
@@ -14,6 +14,10 @@
)
func createServer(t *testing.T, client *gophercloud.ServiceClient) *os.Server {
+ if testing.Short(){
+ t.Skip("Skipping test that requires server creation in short mode.")
+ }
+
options, err := optionsFromEnv()
th.AssertNoErr(t, err)