Skip to content

Commit

Permalink
fix:ci goframe plugins config tags check
Browse files Browse the repository at this point in the history
  • Loading branch information
lidiwei committed Sep 20, 2024
1 parent b2723e9 commit 9af8056
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
3 changes: 2 additions & 1 deletion test/plugins/scenarios/goframe/config/excepted.yml
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,8 @@ segmentItems:
tags:
- {key: http.method, value: GET}
- {key: url, value: 'localhost:8080/provider'}
- {key: http.headers, value: "h1=h1-value\nh2=h2"}
- {key: http.params, value: 'test=1'}
- {key: status_code, value: '200'}
- operationName: GET:/consumer
parentSpanId: -1
Expand All @@ -71,7 +73,6 @@ segmentItems:
tags:
- {key: http.method, value: GET}
- {key: url, value: 'service:8080/consumer'}
- {key: http.params, value: ''}
- {key: status_code, value: '200'}
meterItems: []
logItems: []
4 changes: 2 additions & 2 deletions test/plugins/scenarios/goframe/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -44,8 +44,8 @@ func main() {
})
s.BindHandler("/consumer", func(r *ghttp.Request) {
client := g.Client()
client.SetHeader("h1", "h1")
client.SetHeader("h2", "h2")
client.SetHeader("h1", "h1-value")
client.SetHeader("h2", "h2-value")
var resp, err = client.Get(gctx.GetInitCtx(), "http://localhost:8080/provider?test=1")
if err != nil {
r.Response.Write(err.Error())
Expand Down

0 comments on commit 9af8056

Please sign in to comment.