Skip to content

Commit

Permalink
Will BeforeSuite help?
Browse files Browse the repository at this point in the history
  • Loading branch information
dehort committed Nov 14, 2024
1 parent 3ee410a commit 175ca87
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions internal/api/tests/public/public_suite_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -17,10 +17,20 @@ var (
func TestConfig(t *testing.T) {
RegisterFailHandler(Fail)

/*
cfg := config.Get()
cfg.Set("web.port", 9002)
api.WithApi(cfg)
*/

RunSpecs(t, "Public Controller Suite")
}


var _ = BeforeSuite(func() {
cfg := config.Get()
cfg.Set("web.port", 9002)

api.WithApi(cfg)
})

0 comments on commit 175ca87

Please sign in to comment.