mirror of
https://github.com/kemko/nomad.git
synced 2026-01-04 17:35:43 +03:00
gofmt -s (simplify) files
This commit is contained in:
@@ -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,
|
||||
|
||||
@@ -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,
|
||||
},
|
||||
},
|
||||
|
||||
@@ -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",
|
||||
|
||||
Reference in New Issue
Block a user