Skip to content
This repository has been archived by the owner on Aug 31, 2021. It is now read-only.

contract_watcher_header_sync_transformer_test.go fails unexpectedly #100

Open
i-norden opened this issue Jun 5, 2019 · 2 comments
Open

Comments

@i-norden
Copy link
Collaborator

i-norden commented Jun 5, 2019

The integration_tests will randomly fail on Travis, with the below error:

• Failure [0.398 seconds]
contractWatcher headerSync transformer
/home/travis/gopath/src/github.com/vulcanize/vulcanizedb/integration_test/contract_watcher_header_sync_transformer_test.go:21
  Init
  /home/travis/gopath/src/github.com/vulcanize/vulcanizedb/integration_test/contract_watcher_header_sync_transformer_test.go:39
    Initializes transformer's contract objects [It]
    /home/travis/gopath/src/github.com/vulcanize/vulcanizedb/integration_test/contract_watcher_header_sync_transformer_test.go:40
    Expected
        <int64>: 5197514
    to equal
        <int64>: 6194632
    /home/travis/gopath/src/github.com/vulcanize/vulcanizedb/integration_test/contract_watcher_header_sync_transformer_test.go:59

Summarizing 1 Failure:
[Fail] contractWatcher headerSync transformer Init [It] Initializes transformer's contract objects 
/home/travis/gopath/src/github.com/vulcanize/vulcanizedb/integration_test/contract_watcher_header_sync_transformer_test.go:59

This appears to be due to a Postgres connection timeout or similar issue, although how that results in the above error is not clear. Need to investigate further, putting this here as a reminder!

@AFDudley
Copy link
Contributor

@i-norden can we close this?

@i-norden
Copy link
Collaborator Author

The test still fails periodically due to a sql.ErrNoRows error here and it's not clear why this error is occurring (there is no error on the header insert that fills in the rows here and here). It appears to be an issue with Travis and Postgres as I haven't ran into the error in my local tests. We currently log the error and restart the tests when it occurs.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
2 participants