From ee00b3d8abb8f890cedda883cc26b9c7e4a53570 Mon Sep 17 00:00:00 2001 From: Jacob McCann Date: Tue, 31 Jul 2018 13:33:44 -0500 Subject: [PATCH] reorder some tests by name --- plugin_test.go | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/plugin_test.go b/plugin_test.go index 197d2a7..29f206d 100644 --- a/plugin_test.go +++ b/plugin_test.go @@ -43,16 +43,16 @@ func TestPlugin(t *testing.T) { args{config: Config{}}, exec.Command("terraform", "apply", "plan.tfout"), }, - { - "with targets", - args{config: Config{Targets: []string{"target1", "target2"}}}, - exec.Command("terraform", "apply", "--target", "target1", "--target", "target2", "plan.tfout"), - }, { "with parallelism", args{config: Config{Parallelism: 5}}, exec.Command("terraform", "apply", "-parallelism=5", "plan.tfout"), }, + { + "with targets", + args{config: Config{Targets: []string{"target1", "target2"}}}, + exec.Command("terraform", "apply", "--target", "target1", "--target", "target2", "plan.tfout"), + }, } for _, tt := range tests { @@ -77,16 +77,16 @@ func TestPlugin(t *testing.T) { args{config: Config{}}, exec.Command("terraform", "destroy", "-force"), }, - { - "with targets", - args{config: Config{Targets: []string{"target1", "target2"}}}, - exec.Command("terraform", "destroy", "-target=target1", "-target=target2", "-force"), - }, { "with parallelism", args{config: Config{Parallelism: 5}}, exec.Command("terraform", "destroy", "-parallelism=5", "-force"), }, + { + "with targets", + args{config: Config{Targets: []string{"target1", "target2"}}}, + exec.Command("terraform", "destroy", "-target=target1", "-target=target2", "-force"), + }, } for _, tt := range tests {