From 1dcb4a1865e226d660efdfc9124b7d0722d89d23 Mon Sep 17 00:00:00 2001 From: knox Date: Thu, 2 Nov 2023 17:00:01 +0100 Subject: [PATCH] fixed conf for tests --- src/.env.example | 4 ++-- src/api/mods_handler_test.go | 6 +++--- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/src/.env.example b/src/.env.example index 1607eaf4..99b6b784 100644 --- a/src/.env.example +++ b/src/.env.example @@ -1,5 +1,5 @@ factorio_username= factorio_password= -conf=../../conf.json +FSM_CONF=../../conf.json mod_dir=dev -mod_pack_dir=dev_pack \ No newline at end of file +FSM_MODPACK_DIR=dev_pack \ No newline at end of file diff --git a/src/api/mods_handler_test.go b/src/api/mods_handler_test.go index adacc13c..0967d4b6 100644 --- a/src/api/mods_handler_test.go +++ b/src/api/mods_handler_test.go @@ -30,9 +30,9 @@ func TestMain(m *testing.M) { // basic setup stuff bootstrap.NewConfig([]string{ - "--dir", os.Getenv("dir"), - "--conf", os.Getenv("conf"), - "--mod-pack-dir", os.Getenv("mod_pack_dir"), + "--dir", os.Getenv("FSM_DIR"), + "--conf", os.Getenv("FSM_CONF"), + "--mod-pack-dir", os.Getenv("FSM_MODPACK_DIR"), "--mod-dir", os.Getenv("mod_dir"), })