Reorganize files into separate packages
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user