Reorganize files into separate packages

This commit is contained in:
Eric Meyer
2017-11-02 15:07:38 -05:00
parent 70c34e86ea
commit 0a04df72d3
16 changed files with 134 additions and 84 deletions
+5 -3
View File
@@ -4,8 +4,10 @@ import (
"path"
"runtime"
"github.com/8thlight/vulcanizedb/blockchain_listener"
"github.com/8thlight/vulcanizedb/core"
"github.com/8thlight/vulcanizedb/fakes"
"github.com/8thlight/vulcanizedb/geth"
. "github.com/onsi/ginkgo"
. "github.com/onsi/gomega"
)
@@ -20,11 +22,11 @@ func RunTimePath() string {
var _ = Describe("Reading from the Geth blockchain", func() {
It("reads two block with listener", func(done Done) {
It("reads two blocks", func(done Done) {
observer := fakes.NewFakeBlockchainObserverTwo()
blockchain := core.NewGethBlockchain(RunTimePath() + "/test_data_dir/geth.ipc")
blockchain := geth.NewGethBlockchain(RunTimePath() + "/test_data_dir/geth.ipc")
observers := []core.BlockchainObserver{observer}
listener := core.NewBlockchainListener(blockchain, observers)
listener := blockchain_listener.NewBlockchainListener(blockchain, observers)
go listener.Start()
<-observer.WasNotified