Skip to content

Commit

Permalink
Remove redundant test.
Browse files Browse the repository at this point in the history
  • Loading branch information
Tang8330 committed Sep 25, 2024
1 parent e715b73 commit 72a64e5
Showing 1 changed file with 0 additions and 26 deletions.
26 changes: 0 additions & 26 deletions lib/config/config_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -38,32 +38,6 @@ func TestBigQuery_DSN(t *testing.T) {
assert.Equal(t, "bigquery://project/eu/dataset", b.DSN())
}

func TestKafka_BootstrapServers(t *testing.T) {
type _tc struct {
bootstrapServerString string
expectedBootstrapServers []string
}

tcs := []_tc{
{
bootstrapServerString: "localhost:9092",
expectedBootstrapServers: []string{"localhost:9092"},
},
{
bootstrapServerString: "a:9092,b:9093,c:9094",
expectedBootstrapServers: []string{"a:9092", "b:9093", "c:9094"},
},
}

for idx, tc := range tcs {
k := Kafka{
BootstrapServer: tc.bootstrapServerString,
}

assert.Equal(t, tc.expectedBootstrapServers, k.BootstrapServers(), idx)
}
}

func TestKafka_String(t *testing.T) {
k := Kafka{
BootstrapServer: "server",
Expand Down

0 comments on commit 72a64e5

Please sign in to comment.