Skip to content

Commit

Permalink
fix test case error
Browse files Browse the repository at this point in the history
Signed-off-by: axfor <aixiaoxiang2009@hotmail.com>
  • Loading branch information
axfor committed Apr 22, 2023
1 parent a8e3274 commit 47430ea
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion cmd/ingester/app/consumer/consumer.go
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ func (c *Consumer) Start() {
}

// Start begins consuming messages in a go routine and consumer is running
func (c *Consumer) StartAndReady() {
func (c *Consumer) StartWithReady() {
c.Start()
c.consumerReady.waitReady()
}
Expand Down
2 changes: 1 addition & 1 deletion cmd/ingester/app/consumer/consumer_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -171,7 +171,7 @@ func TestGroupConsumer(t *testing.T) {
spanWriter.consumer = consumer
spanWriter.t = t

consumer.StartAndReady()
consumer.StartWithReady()

t.Log("Consumer is ready and wait message")

Expand Down
2 changes: 1 addition & 1 deletion plugin/storage/integration/kafka_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ func (s *KafkaIntegrationTestSuite) initialize() error {
return err
}
// start consume and wait consumer running
spanConsumer.StartAndReady()
spanConsumer.StartWithReady()

s.SpanWriter = spanWriter
s.SpanReader = &ingester{traceStore}
Expand Down

0 comments on commit 47430ea

Please sign in to comment.