Merge pull request #173 from vulcanize/fix_ci_tests

Fix CI tests
This commit is contained in:
Ian Norden 2021-12-20 14:01:12 -06:00 committed by GitHub
commit 444263bd2f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 15 additions and 7 deletions

View File

@ -56,7 +56,11 @@ ios:
.PHONY: statedifftest
statedifftest: | $(GOOSE)
MODE=statediff go test ./statediff/... -v
MODE=statediff go test -p 1 ./statediff/... -v
.PHONY: statediff_filewriting_test
statediff_filetest: | $(GOOSE)
MODE=statediff STATEDIFF_DB=file go test -p 1 ./statediff/... -v
test: all
$(GORUN) build/ci.go test

View File

@ -3,7 +3,7 @@ version: '3.2'
services:
ipld-eth-db:
restart: always
image: vulcanize/ipld-eth-db:v0.2.0
image: vulcanize/ipld-eth-db:v0.3.1
environment:
POSTGRES_USER: "vdbm"
POSTGRES_DB: "vulcanize_public"
@ -14,4 +14,4 @@ services:
- "127.0.0.1:5432:5432"
volumes:
geth_node:
geth_node:

View File

@ -21,10 +21,10 @@ import (
)
const (
VersionMajor = 1 // Major version component of the current release
VersionMinor = 10 // Minor version component of the current release
VersionPatch = 11 // Patch version component of the current release
VersionMeta = "statediff-0.0.27" // Version metadata to append to the version string
VersionMajor = 1 // Major version component of the current release
VersionMinor = 10 // Minor version component of the current release
VersionPatch = 11 // Patch version component of the current release
VersionMeta = "statediff-0.1.0" // Version metadata to append to the version string
)
// Version holds the textual version string.

View File

@ -46,6 +46,10 @@ func init() {
fmt.Println("Skipping statediff test")
os.Exit(0)
}
if os.Getenv("STATEDIFF_DB") != "file" {
fmt.Println("Skipping statediff .sql file writing mode test")
os.Exit(0)
}
}
func TestPushBlockAndState(t *testing.T) {