Skip to content

Commit

Permalink
sebtopic: rename variables top -> topic
Browse files Browse the repository at this point in the history
  • Loading branch information
micvbang committed May 27, 2024
1 parent 4a5d94f commit 5db01ec
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions internal/sebtopic/topic_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -547,16 +547,16 @@ func TestTopicReadRecordsContextExpired(t *testing.T) {
// TestTopicMetadata verifies that Metadata() returns the most recent metadata.
func TestTopicMetadata(t *testing.T) {
tester.TestTopicStorageAndCache(t, func(t *testing.T, storage sebtopic.Storage, cache *sebcache.Cache) {
top, err := sebtopic.New(log, storage, "topicName", cache)
topic, err := sebtopic.New(log, storage, "topicName", cache)
require.NoError(t, err)

for i := 1; i <= 5; i++ {
records := tester.MakeRandomRecords(32)
_, err = top.AddRecords(records)
_, err = topic.AddRecords(records)
require.NoError(t, err)

// Act
gotMetadata, err := top.Metadata()
gotMetadata, err := topic.Metadata()
require.NoError(t, err)
t0 := time.Now()

Expand All @@ -572,11 +572,11 @@ func TestTopicMetadata(t *testing.T) {
// data when the topic is empty.
func TestTopicMetadataEmptyTopic(t *testing.T) {
tester.TestTopicStorageAndCache(t, func(t *testing.T, storage sebtopic.Storage, cache *sebcache.Cache) {
top, err := sebtopic.New(log, storage, "topicName", cache)
topic, err := sebtopic.New(log, storage, "topicName", cache)
require.NoError(t, err)

// Act
gotMetadata, err := top.Metadata()
gotMetadata, err := topic.Metadata()
require.NoError(t, err)

// Assert
Expand Down

0 comments on commit 5db01ec

Please sign in to comment.