Add tests for access command

This commit is contained in:
9seconds
2021-03-12 21:57:53 +03:00
parent 546a5849f3
commit 185baf6bc9
8 changed files with 252 additions and 29 deletions
+4 -4
View File
@@ -11,8 +11,8 @@ import (
)
type base struct {
network network.Network
conf *config.Config
Network network.Network
Config *config.Config
}
func (b *base) ReadConfig(path, version string) error {
@@ -31,8 +31,8 @@ func (b *base) ReadConfig(path, version string) error {
return fmt.Errorf("cannot build a network: %w", err)
}
b.conf = conf
b.network = ntw
b.Config = conf
b.Network = ntw
return nil
}