Browse Source

feat: Parallel testing

update-packer-186
Bo-Yi Wu 7 years ago
parent
commit
f9d6c1b1e9
  1. 1
      plugin_test.go

1
plugin_test.go

@ -55,6 +55,7 @@ func Test_pkValidate(t *testing.T) {
} }
for _, tt := range tests { for _, tt := range tests {
t.Run(tt.name, func(t *testing.T) { t.Run(tt.name, func(t *testing.T) {
t.Parallel()
if got := pkValidate(tt.args.config); !reflect.DeepEqual(got, tt.want) { if got := pkValidate(tt.args.config); !reflect.DeepEqual(got, tt.want) {
t.Errorf("pkValidate() = %v, want %v", got, tt.want) t.Errorf("pkValidate() = %v, want %v", got, tt.want)
} }

Loading…
Cancel
Save