package model
is imports package config
which reads config.xml
in it's init
When running test; I get an error complaining it cannot read the file.
I've checked the file does exists and I can run my application(read the config file)
Does golang test not run in rootdir ? Is there a way I can run this test without too much refactoring?
server git:(main) ➜ go test -v ./model/...
2022/07/06 15:46:21 config.go:72: Reading config file config.yaml
2022/07/06 15:46:21 config.go:75: open config.yaml: no such file or directory
FAIL github.com/texbazaar/server/model 0.141s
FAIL
server git:(main) ➜