From 7b1d55dce2838231568da223c10d7de042aa8d88 Mon Sep 17 00:00:00 2001 From: knoxfighter Date: Sat, 17 Oct 2020 02:35:26 +0200 Subject: [PATCH] dont fail tests when no login possible --- src/api/mods_handler_test.go | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/api/mods_handler_test.go b/src/api/mods_handler_test.go index 72566a8..805246d 100644 --- a/src/api/mods_handler_test.go +++ b/src/api/mods_handler_test.go @@ -48,8 +48,7 @@ func TestMain(m *testing.M) { // no credentials found, login... err, _ = factorio.FactorioLogin(os.Getenv("factorio_username"), os.Getenv("factorio_password")) if err != nil { - log.Fatalf("Error logging in into factorio: %s", err) - return + log.Printf("Error logging in into factorio: %s", err) } }