Skip to content
Snippets Groups Projects
Commit db96d6dd authored by ale's avatar ale
Browse files

Revert "Fix error unmarshaling"

This reverts commit 982b2c7d.
parent 982b2c7d
No related branches found
No related tags found
1 merge request!142Refactor validation code for readability
//go:build integration
// +build integration // +build integration
package integrationtest package integrationtest
...@@ -131,7 +130,7 @@ func TestIntegration_Error_Validation(t *testing.T) { ...@@ -131,7 +130,7 @@ func TestIntegration_Error_Validation(t *testing.T) {
t.Fatalf("CreateUser() did not return a structured error: %v", err) t.Fatalf("CreateUser() did not return a structured error: %v", err)
} }
var fields map[string]string var fields map[string][]string
if err := json.Unmarshal(httpErr.data, &fields); err != nil { if err := json.Unmarshal(httpErr.data, &fields); err != nil {
t.Fatalf("error unmarshaling JSON error: %v", err) t.Fatalf("error unmarshaling JSON error: %v", err)
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment