Skip to content

Commit

Permalink
Change main.go Dirs
Browse files Browse the repository at this point in the history
  • Loading branch information
vvoluom committed Apr 9, 2020
1 parent 41d92bc commit 938b797
Show file tree
Hide file tree
Showing 8 changed files with 9 additions and 9 deletions.
2 changes: 1 addition & 1 deletion run_api.sh
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@

cd src
go run main.go
3 changes: 2 additions & 1 deletion run_tests.sh
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
go test ./src/handlers ./src/config ./src/rpc -v
cd src
go test ./handlers ./config ./rpc -v
6 changes: 3 additions & 3 deletions src/config/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,9 @@ var (
confMain ini.Config
confNodes ini.Config
confSentry ini.Config
mainConfigFile = "config/user_config_main.ini"
nodesFile = "config/user_config_nodes.ini"
sentryFile = "config/user_config_sentry.ini"
mainConfigFile = "../config/user_config_main.ini"
nodesFile = "../config/user_config_nodes.ini"
sentryFile = "../config/user_config_sentry.ini"
)

// SetSentryFile sets file location containing sentry data
Expand Down
2 changes: 1 addition & 1 deletion src/config/config_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ func TestMain(m *testing.M) {
}

func setup() {
os.Chdir("../../")
os.Chdir("../")

// Set Logger that will be used by API through all packages
lgr.SetLogger(os.Stdout, os.Stdout, os.Stderr)
Expand Down
3 changes: 1 addition & 2 deletions go.mod → src/go.mod
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
module github.com/SimplyVC/oasis_api_server
module github.com/SimplyVC/oasis_api_server/src

go 1.13

Expand Down Expand Up @@ -45,7 +45,6 @@ require (
github.com/tendermint/tendermint v0.32.8
github.com/tendermint/tm-db v0.2.0
github.com/thepudds/fzgo v0.2.2
github.com/therecipe/qt v0.0.0-20200126204426-5074eb6d8c41 // indirect
github.com/uber/jaeger-client-go v2.16.0+incompatible
github.com/whyrusleeping/go-logging v0.0.0-20170515211332-0457bb6b88fc
github.com/zondax/ledger-oasis-go v0.3.0
Expand Down
File renamed without changes.
2 changes: 1 addition & 1 deletion src/handlers/consensus_handler_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ func setup() {

// Set Logger that will be used by API through all packages
// And Load all configuration that need to be used by router
os.Chdir("../../")
os.Chdir("../")
lgr.SetLogger(os.Stdout, os.Stdout, os.Stderr)
conf.LoadMainConfiguration()
conf.LoadNodesConfiguration()
Expand Down
File renamed without changes.

0 comments on commit 938b797

Please sign in to comment.