mirror of
https://github.com/status-im/consul.git
synced 2025-01-11 06:16:08 +00:00
go fmt runtime_test.go
This commit is contained in:
parent
90c83e64ec
commit
44e3dd79ff
@ -5589,7 +5589,7 @@ func TestReadPath(t *testing.T) {
|
|||||||
dataDir := testutil.TempDir(t, "consul")
|
dataDir := testutil.TempDir(t, "consul")
|
||||||
defer os.RemoveAll(dataDir)
|
defer os.RemoveAll(dataDir)
|
||||||
|
|
||||||
tt := []struct{
|
tt := []struct {
|
||||||
name string
|
name string
|
||||||
pre func()
|
pre func()
|
||||||
args []string
|
args []string
|
||||||
@ -5644,7 +5644,7 @@ func TestReadPath(t *testing.T) {
|
|||||||
for _, tc := range tt {
|
for _, tc := range tt {
|
||||||
cleanDir(dataDir)
|
cleanDir(dataDir)
|
||||||
|
|
||||||
t.Run(tc.name, func(t * testing.T) {
|
t.Run(tc.name, func(t *testing.T) {
|
||||||
flags := Flags{}
|
flags := Flags{}
|
||||||
fs := flag.NewFlagSet("", flag.ContinueOnError)
|
fs := flag.NewFlagSet("", flag.ContinueOnError)
|
||||||
AddFlags(fs, &flags)
|
AddFlags(fs, &flags)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user