Changed tester command from 'make test' to 'make tester'
This commit is contained in:
@@ -4,19 +4,19 @@ import (
|
||||
"database/sql"
|
||||
"net/http"
|
||||
|
||||
"projectreshoot/server"
|
||||
"projectreshoot/config"
|
||||
|
||||
"github.com/rs/zerolog"
|
||||
)
|
||||
|
||||
// This function will only be called if the --test commandline flag is set.
|
||||
// After the function finishes the application will close.
|
||||
// Running command `make test` will run the test using port 3232 to avoid
|
||||
// Running command `make tester` will run the test using port 3232 to avoid
|
||||
// conflicts on the default 3333. Useful for testing things out during dev.
|
||||
// If you add code here, remember to run:
|
||||
// `git update-index --assume-unchanged tester.go` to avoid tracking changes
|
||||
func test(
|
||||
config *server.Config,
|
||||
config *config.Config,
|
||||
logger *zerolog.Logger,
|
||||
conn *sql.DB,
|
||||
srv *http.Server,
|
||||
|
||||
Reference in New Issue
Block a user