Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
A
accountserver
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Monitor
Service Desk
Analyze
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
ai3
accountserver
Commits
db96d6dd
Commit
db96d6dd
authored
5 months ago
by
ale
Browse files
Options
Downloads
Patches
Plain Diff
Revert "Fix error unmarshaling"
This reverts commit
982b2c7d
.
parent
982b2c7d
No related branches found
No related tags found
1 merge request
!142
Refactor validation code for readability
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
integrationtest/errors_test.go
+1
-2
1 addition, 2 deletions
integrationtest/errors_test.go
with
1 addition
and
2 deletions
integrationtest/errors_test.go
+
1
−
2
View file @
db96d6dd
//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
)
}
}
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment