Skip to content

Commit

Permalink
[#11] fix test failure
Browse files Browse the repository at this point in the history
  • Loading branch information
dwkang committed Aug 19, 2022
1 parent 23a77a1 commit fd6923a
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion plugin/sarama/example/consumer.go
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ import (
psarama "github.com/pinpoint-apm/pinpoint-go-agent/plugin/sarama"
)

const ctopic = "sample-topic"
const ctopic = "go-sarama-test"

var cbrokers = []string{"127.0.0.1:9092"}

Expand Down
2 changes: 1 addition & 1 deletion plugin/sarama/example/producer.go
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ import (

var fakeDB string

const topic = "sample-topic"
const topic = "go-sarama-test"

var producer *psarama.SyncProducer
var brokers = []string{"127.0.0.1:9092"}
Expand Down
2 changes: 1 addition & 1 deletion span_event_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@ func Test_spanEvent_SetSQL(t *testing.T) {
t.Run(tt.name, func(t *testing.T) {
tt.args.span.agent = newMockAgent()
se := newSpanEvent(tt.args.span, tt.args.operationName)
se.SetSQL("SELECT 1")
se.SetSQL("SELECT 1", "")
assert.Equal(t, len(se.annotations.list), int(1), "annotations.len")
})
}
Expand Down

0 comments on commit fd6923a

Please sign in to comment.