prysm-pulse/slasher/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

26 lines
698 B
Python

load("@prysm//tools/go:def.bzl", "go_library")
load("@io_bazel_rules_go//go:def.bzl", "go_test")
go_library(
name = "go_default_library",
testonly = True,
srcs = ["setup_db.go"],
importpath = "github.com/prysmaticlabs/prysm/slasher/db/testing",
visibility = ["//slasher:__subpackages__"],
deps = [
"//slasher/db:go_default_library",
"//slasher/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",
"//slasher/db:go_default_library",
"//slasher/db/kv:go_default_library",
],
)