gofmt -s (simplify) files

This commit is contained in:
Michael Schurter
2018-03-16 16:31:16 -07:00
parent 6e39736a56
commit 16538f6474
3 changed files with 13 additions and 13 deletions

View File

@@ -63,7 +63,7 @@ func (c *MockAgent) SetStatus(s string) string {
func (c *MockAgent) Self() (map[string]map[string]interface{}, error) {
s := map[string]map[string]interface{}{
"Member": map[string]interface{}{
"Member": {
"Addr": "127.0.0.1",
"DelegateCur": 4,
"DelegateMax": 5,

View File

@@ -644,14 +644,14 @@ func TestFSM_BatchDeregisterJob(t *testing.T) {
req3 := structs.JobBatchDeregisterRequest{
Jobs: map[structs.NamespacedID]*structs.JobDeregisterOptions{
structs.NamespacedID{
{
ID: job.ID,
Namespace: job.Namespace,
}: &structs.JobDeregisterOptions{},
structs.NamespacedID{
}: {},
{
ID: job2.ID,
Namespace: job2.Namespace,
}: &structs.JobDeregisterOptions{
}: {
Purge: true,
},
},

View File

@@ -1841,14 +1841,14 @@ func TestJobEndpoint_BatchDeregister(t *testing.T) {
// Deregister
dereg := &structs.JobBatchDeregisterRequest{
Jobs: map[structs.NamespacedID]*structs.JobDeregisterOptions{
structs.NamespacedID{
{
ID: job.ID,
Namespace: job.Namespace,
}: &structs.JobDeregisterOptions{},
structs.NamespacedID{
}: {},
{
ID: job2.ID,
Namespace: job2.Namespace,
}: &structs.JobDeregisterOptions{
}: {
Purge: true,
},
},
@@ -1911,14 +1911,14 @@ func TestJobEndpoint_BatchDeregister_ACL(t *testing.T) {
// Deregister
req := &structs.JobBatchDeregisterRequest{
Jobs: map[structs.NamespacedID]*structs.JobDeregisterOptions{
structs.NamespacedID{
{
ID: job.ID,
Namespace: job.Namespace,
}: &structs.JobDeregisterOptions{},
structs.NamespacedID{
}: {},
{
ID: job2.ID,
Namespace: job2.Namespace,
}: &structs.JobDeregisterOptions{},
}: {},
},
WriteRequest: structs.WriteRequest{
Region: "global",