Skip to content

Commit

Permalink
minor test fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
Nikolay Pavlovich committed Oct 22, 2019
1 parent 1ab635c commit 4f084dd
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions collector_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -19,13 +19,16 @@ const qParams = "user=user&password=111"
const qSelectAndParams = "query=" + qSelect + "&" + qParams
const badEscQuery = "query=INSERT %zdwfr"

const qFormatInQuotesQuery = "INSERT INTO test (date, args) VALUES"
const qFormatInQuotesValues = "('2019-06-13', 'query=select%20args%20from%20test%20group%20by%20date%20FORMAT%20JSON')"

const qTSNamesTitle = "INSERT INTO table3 (c1, c2, c3) FORMAT TabSeparatedWithNames"
const qNames = "field1 field2 field3"

var escTitle = url.QueryEscape(qTitle)
var escSelect = url.QueryEscape(qSelect)
var escParamsAndSelect = qParams + "&query=" + escSelect

var qFormatInQuotesQuery = "INSERT INTO test (date, args) VALUES"
var qFormatInQuotesValues = "('2019-06-13', 'query=select%20args%20from%20test%20group%20by%20date%20FORMAT%20JSON')"

func BenchmarkCollector_Push(t *testing.B) {
c := NewCollector(&fakeSender{}, 1000, 1000)
for i := 0; i < 30000; i++ {
Expand Down

0 comments on commit 4f084dd

Please sign in to comment.