summaryrefslogtreecommitdiff
path: root/update.exs
diff options
context:
space:
mode:
Diffstat (limited to 'update.exs')
-rw-r--r--update.exs15
1 files changed, 10 insertions, 5 deletions
diff --git a/update.exs b/update.exs
index 4e95392..d89ffa8 100644
--- a/update.exs
+++ b/update.exs
@@ -19,12 +19,17 @@ defmodule Instances do
end
def request(url) do
- case HTTPoison.get(url) do
- {:ok, %HTTPoison.Response{status_code: 200}} ->
- # TODO: Add validation of results, not just status code
+ cond do
+ System.get_env("FARSIDE_TEST") ->
:good
- _ ->
- :bad
+ true ->
+ case HTTPoison.get(url) do
+ {:ok, %HTTPoison.Response{status_code: 200}} ->
+ # TODO: Add validation of results, not just status code
+ :good
+ _ ->
+ :bad
+ end
end
end