Skip to content

Commit

Permalink
fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
tsukanov-as committed Dec 25, 2023
1 parent 4198d77 commit c1736fa
Showing 1 changed file with 15 additions and 3 deletions.
18 changes: 15 additions & 3 deletions config/config_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -274,6 +274,10 @@ date = "2012-12-12"
extra-where = "AND case"
input-file = "input"
output-file = "output"
threads = 5
compression = "zstd"
version = 42
select-chunks-count = 15
[carbonlink]
server = "server:3333"
Expand Down Expand Up @@ -382,7 +386,7 @@ sample-thereafter = 12
assert.Equal(t, expected.ClickHouse, config.ClickHouse)

// Tags
expected.Tags = Tags{"filename", "2012-12-12", "AND case", "input", "output", 1, "gzip"}
expected.Tags = Tags{"filename", "2012-12-12", "AND case", "input", "output", 5, "zstd", 42, 15}
assert.Equal(t, expected.Tags, config.Tags)

// Carbonlink
Expand Down Expand Up @@ -504,6 +508,10 @@ date = "2012-12-12"
extra-where = "AND case"
input-file = "input"
output-file = "output"
threads = 5
compression = "zstd"
version = 42
select-chunks-count = 15
[carbonlink]
server = "server:3333"
Expand Down Expand Up @@ -682,7 +690,7 @@ sample-thereafter = 12
assert.Equal(t, expected.ClickHouse, config.ClickHouse)

// Tags
expected.Tags = Tags{"filename", "2012-12-12", "AND case", "input", "output", 1, "gzip"}
expected.Tags = Tags{"filename", "2012-12-12", "AND case", "input", "output", 5, "zstd", 42, 15}
assert.Equal(t, expected.Tags, config.Tags)

// Carbonlink
Expand Down Expand Up @@ -814,6 +822,10 @@ date = "2012-12-12"
extra-where = "AND case"
input-file = "input"
output-file = "output"
threads = 5
compression = "zstd"
version = 42
select-chunks-count = 15
[carbonlink]
server = "server:3333"
Expand Down Expand Up @@ -997,7 +1009,7 @@ sample-thereafter = 12
assert.Equal(t, expected.ClickHouse, config.ClickHouse)

// Tags
expected.Tags = Tags{"filename", "2012-12-12", "AND case", "input", "output", 1, "gzip"}
expected.Tags = Tags{"filename", "2012-12-12", "AND case", "input", "output", 5, "zstd", 42, 15}
assert.Equal(t, expected.Tags, config.Tags)

// Carbonlink
Expand Down

0 comments on commit c1736fa

Please sign in to comment.