restore testutil usage removed in #1607 (#1608)

This commit is contained in:
Preston Van Loon 2019-02-15 14:04:51 -05:00 committed by GitHub
parent 8d67337564
commit a57912dd5a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 5 additions and 2 deletions

View File

@ -28,6 +28,7 @@ go_test(
embed = [":go_default_library"], embed = [":go_default_library"],
deps = [ deps = [
"//shared/bls:go_default_library", "//shared/bls:go_default_library",
"//shared/testutil:go_default_library",
"@com_github_pborman_uuid//:go_default_library", "@com_github_pborman_uuid//:go_default_library",
], ],
) )

View File

@ -10,6 +10,7 @@ import (
"github.com/pborman/uuid" "github.com/pborman/uuid"
"github.com/prysmaticlabs/prysm/shared/bls" "github.com/prysmaticlabs/prysm/shared/bls"
"github.com/prysmaticlabs/prysm/shared/testutil"
) )
func TestMarshalAndUnmarshal(t *testing.T) { func TestMarshalAndUnmarshal(t *testing.T) {
@ -43,7 +44,7 @@ func TestMarshalAndUnmarshal(t *testing.T) {
} }
func TestStoreRandomKey(t *testing.T) { func TestStoreRandomKey(t *testing.T) {
tmpdir := os.TempDir() tmpdir := testutil.TempDir()
filedir := tmpdir + "/keystore" filedir := tmpdir + "/keystore"
ks := &Store{ ks := &Store{
keysDirPath: filedir, keysDirPath: filedir,

View File

@ -9,10 +9,11 @@ import (
"github.com/pborman/uuid" "github.com/pborman/uuid"
"github.com/prysmaticlabs/prysm/shared/bls" "github.com/prysmaticlabs/prysm/shared/bls"
"github.com/prysmaticlabs/prysm/shared/testutil"
) )
func TestStoreandGetKey(t *testing.T) { func TestStoreandGetKey(t *testing.T) {
tmpdir := os.TempDir() tmpdir := testutil.TempDir()
filedir := tmpdir + "/keystore" filedir := tmpdir + "/keystore"
ks := &Store{ ks := &Store{
keysDirPath: filedir, keysDirPath: filedir,