diff --git a/web/webtest/main.go b/web/webtest/main.go index 0d76545..4d70059 100644 --- a/web/webtest/main.go +++ b/web/webtest/main.go @@ -28,6 +28,7 @@ type Option struct { ModuleLoader web.ModuleRegisterFunc } +// TestServer - to run it without listen an server type TestServer struct { DB *database.Database Mails chan *mailer.TestingMail @@ -113,7 +114,7 @@ func NewWithOption(option Option) (*TestServer, error) { }, nil } -// DatabaseForget, to run a test without a database +// DatabaseForget to run a test without a database func (s *TestServer) DatabaseForget() { s.WS.DB = nil s.DB = nil