Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Abingcbc committed Jan 8, 2025
1 parent 7d46278 commit 63286d5
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions test/engine/setup/subscriber/sls.go
Original file line number Diff line number Diff line change
Expand Up @@ -273,11 +273,6 @@ func init() {
} else {
l.Project = config.TestConfig.Project
}
if v, ok := spec["logstore"]; ok {
l.Logstore = v.(string)
} else {
l.Logstore = config.TestConfig.Logstore
}
if v, ok := spec["query_endpoint"]; ok {
l.QueryEndpoint = v.(string)
} else {
Expand All @@ -288,6 +283,11 @@ func init() {
} else {
l.TelemetryType = "logs"
}
if v, ok := spec["logstore"]; ok {
l.Logstore = v.(string)
} else {
l.Logstore = config.TestConfig.GetLogstore(l.TelemetryType)
}
l.client = createSLSClient(config.TestConfig.AccessKeyID, config.TestConfig.AccessKeySecret, l.QueryEndpoint)
return l, nil
})
Expand Down

0 comments on commit 63286d5

Please sign in to comment.