prysm-pulse/validator/db/testing/BUILD.bazel
Victor Farazdagi 2f11e55869
Use t.TempDir() in tests (#7769)
* use t.TempDir()

* remove redundant delete

* simplify setupDB()

* simplify db/testing/setup_db

* fix tests
2020-11-10 22:45:17 +00:00

24 lines
644 B
Python

load("@io_bazel_rules_go//go:def.bzl", "go_test")
load("@prysm//tools/go:def.bzl", "go_library")
go_library(
name = "go_default_library",
srcs = ["setup_db.go"],
importpath = "github.com/prysmaticlabs/prysm/validator/db/testing",
visibility = ["//validator:__subpackages__"],
deps = [
"//validator/db:go_default_library",
"//validator/db/kv:go_default_library",
],
)
go_test(
name = "go_default_test",
srcs = ["setup_db_test.go"],
embed = [":go_default_library"],
deps = [
"//shared/testutil/require:go_default_library",
"//validator/db/kv:go_default_library",
],
)