From 587cfb5a364b1762e57d607256f98b6757701665 Mon Sep 17 00:00:00 2001 From: alfred-mk Date: Thu, 3 Oct 2024 11:45:37 +0300 Subject: [PATCH] use the pp.csv from the scriptDir --- engine/engine.go | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/engine/engine.go b/engine/engine.go index e66dc0c..c936b91 100644 --- a/engine/engine.go +++ b/engine/engine.go @@ -11,11 +11,13 @@ import ( "git.defalsify.org/vise.git/resource" "git.grassecon.net/urdt/ussd/internal/handlers" "git.grassecon.net/urdt/ussd/internal/storage" + testdataloader "github.com/peteole/testdata-loader" ) var ( + baseDir = testdataloader.GetBasePath() logg = logging.NewVanilla() - scriptDir = path.Join("services", "registration") + scriptDir = path.Join(baseDir, "services", "registration") ) func TestEngine(sessionId string) (engine.Engine, func()) {