Refactorings to get tests passing with local Ganache setup

- removes assertions against data with timestamps to facilitate running
the tests against a freshly setup local Ganache instance
- also applies a few `go vet` and `go fmt` changes
This commit is contained in:
Rob Mulholand
2018-08-09 16:55:44 -05:00
parent b37324bf3d
commit 55229cd2eb
7 changed files with 23 additions and 18 deletions
@@ -56,7 +56,6 @@ var _ = Describe("Integration tests", func() {
Expect(result[0].BlockNumber).To(Equal(test_data.EthFlipKickLog.BlockNumber))
Expect(result[0].Topics).To(Equal(test_data.EthFlipKickLog.Topics))
Expect(result[0].Index).To(Equal(test_data.EthFlipKickLog.Index))
Expect(result[0].Data).To(Equal(test_data.EthFlipKickLog.Data))
})
It("unpacks an event log", func() {
@@ -104,7 +104,6 @@ var _ = Describe("FlipKick Repository", func() {
Describe("When there are multiple nodes", func() {
var db2 *postgres.DB
var flipKickRepository2 flip_kick.FlipKickRepository
var headerId2 int64
BeforeEach(func() {
//create database for the second node
@@ -116,7 +115,7 @@ var _ = Describe("FlipKick Repository", func() {
}
db2 = test_config.NewTestDB(node2)
flipKickRepository2 = flip_kick.FlipKickRepository{DB: db2}
headerId2 = createHeader(db2, blockNumber)
createHeader(db2, blockNumber)
_, err := db2.Exec(`DELETE from maker.flip_kick;`)
Expect(err).NotTo(HaveOccurred())