remove offline mode from auth unit tests

This commit is contained in:
Guillaume J. Charmes 2013-06-18 17:09:47 -07:00
Родитель 13e03a6911
Коммит 6dccdd657f
1 изменённых файлов: 0 добавлений и 6 удалений

Просмотреть файл

@ -27,9 +27,6 @@ func TestEncodeAuth(t *testing.T) {
}
func TestLogin(t *testing.T) {
if os.Getenv("OFFLINE") != "" {
t.Skip("Offline mode, skipping.")
}
os.Setenv("DOCKER_INDEX_URL", "https://indexstaging-docker.dotcloud.com")
defer os.Setenv("DOCKER_INDEX_URL", "")
authConfig := NewAuthConfig("unittester", "surlautrerivejetattendrai", "noise+unittester@dotcloud.com", "/tmp")
@ -43,9 +40,6 @@ func TestLogin(t *testing.T) {
}
func TestCreateAccount(t *testing.T) {
if os.Getenv("OFFLINE") != "" {
t.Skip("Offline mode, skipping.")
}
os.Setenv("DOCKER_INDEX_URL", "https://indexstaging-docker.dotcloud.com")
defer os.Setenv("DOCKER_INDEX_URL", "")
tokenBuffer := make([]byte, 16)