Browse code

remove offline mode from auth unit tests

Guillaume J. Charmes authored on 2013/06/19 09:09:47
Showing 1 changed files
... ...
@@ -27,9 +27,6 @@ func TestEncodeAuth(t *testing.T) {
27 27
 }
28 28
 
29 29
 func TestLogin(t *testing.T) {
30
-	if os.Getenv("OFFLINE") != "" {
31
-		t.Skip("Offline mode, skipping.")
32
-	}
33 30
 	os.Setenv("DOCKER_INDEX_URL", "https://indexstaging-docker.dotcloud.com")
34 31
 	defer os.Setenv("DOCKER_INDEX_URL", "")
35 32
 	authConfig := NewAuthConfig("unittester", "surlautrerivejetattendrai", "noise+unittester@dotcloud.com", "/tmp")
... ...
@@ -43,9 +40,6 @@ func TestLogin(t *testing.T) {
43 43
 }
44 44
 
45 45
 func TestCreateAccount(t *testing.T) {
46
-	if os.Getenv("OFFLINE") != "" {
47
-		t.Skip("Offline mode, skipping.")
48
-	}
49 46
 	os.Setenv("DOCKER_INDEX_URL", "https://indexstaging-docker.dotcloud.com")
50 47
 	defer os.Setenv("DOCKER_INDEX_URL", "")
51 48
 	tokenBuffer := make([]byte, 16)