mirror of
https://github.com/bettercap/bettercap
synced 2025-08-14 02:36:57 -07:00
wrote unit tests for session.Environment
This commit is contained in:
parent
64f3a79be3
commit
4cd86f3fd0
5 changed files with 303 additions and 18 deletions
|
@ -157,7 +157,10 @@ func New() (*Session, error) {
|
|||
}
|
||||
}
|
||||
|
||||
s.Env = NewEnvironment(s, *s.Options.EnvFile)
|
||||
if s.Env, err = NewEnvironment(*s.Options.EnvFile); err != nil {
|
||||
return nil, err
|
||||
}
|
||||
|
||||
s.Events = NewEventPool(*s.Options.Debug, *s.Options.Silent)
|
||||
|
||||
s.registerCoreHandlers()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue