Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions cmd/consume/consume_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -120,8 +120,8 @@ func TestConsumeFromTimestampIntegration(t *testing.T) {

// test --from-timestamp with --to-timestamp with formatted dates
kafkaCtl := testutil.CreateKafkaCtlCommand()
t1Formatted := time.UnixMilli(t1).Format("2006-01-02T15:04:05.000Z")
t2Formatted := time.UnixMilli(t2).Format("2006-01-02T15:04:05.000Z")
t1Formatted := time.UnixMilli(t1).UTC().Format("2006-01-02T15:04:05.000Z")
t2Formatted := time.UnixMilli(t2).UTC().Format("2006-01-02T15:04:05.000Z")
if _, err := kafkaCtl.Execute("consume", topicName, "--from-timestamp", t1Formatted, "--to-timestamp", t2Formatted); err != nil {
t.Fatalf("failed to execute command: %v", err)
}
Expand Down
2 changes: 1 addition & 1 deletion cmd/reset/reset-consumer-group-offset_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,7 @@ func TestResetCGOToDatetimeIntegration(t *testing.T) {
time.Sleep(1 * time.Millisecond) // need to have messaged produced at different milliseconds to have reproducible test

t1 := time.Now()
t1Formatted := t1.Format("2006-01-02T15:04:05.000Z")
t1Formatted := t1.UTC().Format("2006-01-02T15:04:05.000Z")

testutil.ProduceMessage(t, topicName, "test-key", "c", 0, 2)
testutil.ProduceMessage(t, topicName, "test-key", "d", 0, 3)
Expand Down
Loading