Refactor config to return an error instead of aborting

This commit is contained in:
Eric Meyer committed 2017-11-09 12:41:02 -06:00
1 parent 61cf7af2ec
commit aa52088ba7
8 files changed
+60 -24

No files matched your search

+1 -1
View File
@@ -18,7 +18,7 @@ var _ = Describe("Reading from the Geth blockchain", func() {
BeforeEach(func() {
observer = fakes.NewFakeBlockchainObserver()
cfg := config.NewConfig("private")
cfg, _ := config.NewConfig("private")
blockchain = geth.NewGethBlockchain(cfg.Client.IPCPath)
observers := []core.BlockchainObserver{observer}
listener = blockchain_listener.NewBlockchainListener(blockchain, observers)