mirror of
https://gitlab.com/pulsechaincom/prysm-pulse.git
synced 2024-12-25 12:57:18 +00:00
2f11e55869
* use t.TempDir() * remove redundant delete * simplify setupDB() * simplify db/testing/setup_db * fix tests
24 lines
644 B
Python
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",
|
|
],
|
|
)
|