Skip to content

Commit

Permalink
feat: make precommit
Browse files Browse the repository at this point in the history
  • Loading branch information
hanyuancheung committed Nov 3, 2021
1 parent 41f1514 commit 032bb0d
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion semconv/v1.4.0/http_test.go
Expand Up @@ -868,7 +868,7 @@ func TestSpanStatusFromHTTPStatusCode(t *testing.T) {
}
}
code, valid := validateHTTPStatusCode(400, trace.SpanKindServer)
if !valid{
if !valid {
assert.Equalf(t, codes.Unset, code, "message should be set if error cannot be inferred from code")
}
}
Expand Down
2 changes: 1 addition & 1 deletion semconv/v1.5.0/http_test.go
Expand Up @@ -868,7 +868,7 @@ func TestSpanStatusFromHTTPStatusCode(t *testing.T) {
}
}
code, valid := validateHTTPStatusCode(400, trace.SpanKindServer)
if !valid{
if !valid {
assert.Equalf(t, codes.Unset, code, "message should be set if error cannot be inferred from code")
}
}
Expand Down
2 changes: 1 addition & 1 deletion semconv/v1.6.1/http_test.go
Expand Up @@ -867,7 +867,7 @@ func TestSpanStatusFromHTTPStatusCode(t *testing.T) {
}
}
code, valid := validateHTTPStatusCode(400, trace.SpanKindServer)
if !valid{
if !valid {
assert.Equalf(t, codes.Unset, code, "message should be set if error cannot be inferred from code")
}
}
Expand Down
2 changes: 1 addition & 1 deletion semconv/v1.7.0/http_test.go
Expand Up @@ -868,7 +868,7 @@ func TestSpanStatusFromHTTPStatusCode(t *testing.T) {
}
}
code, valid := validateHTTPStatusCode(400, trace.SpanKindServer)
if !valid{
if !valid {
assert.Equalf(t, codes.Unset, code, "message should be set if error cannot be inferred from code")
}
}
Expand Down

0 comments on commit 032bb0d

Please sign in to comment.