wrote unit tests for session.Environment

This commit is contained in:
evilsocket 2018-04-30 14:20:34 +02:00
commit 4cd86f3fd0
No known key found for this signature in database
GPG key ID: 1564D7F30393A456
5 changed files with 303 additions and 18 deletions

View file

@ -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()