mirror of
https://github.com/VictoriaMetrics/VictoriaMetrics.git
synced 2024-12-16 00:41:24 +01:00
app/vmagent/remotewrite: removed unneeded code in testPushWriteRequest after 57801660ab
This commit is contained in:
parent
2c05066f19
commit
b3aed1aebc
@ -33,16 +33,6 @@ func testPushWriteRequest(t *testing.T, rowsCount, expectedBlockLenProm, expecte
|
|||||||
pushBlockLen = len(block)
|
pushBlockLen = len(block)
|
||||||
}
|
}
|
||||||
pushWriteRequest(wr, pushBlock, isVMRemoteWrite)
|
pushWriteRequest(wr, pushBlock, isVMRemoteWrite)
|
||||||
|
|
||||||
if pushBlockLen == expectedBlockLen {
|
|
||||||
return
|
|
||||||
}
|
|
||||||
|
|
||||||
if tolerancePrc == 0 {
|
|
||||||
t.Fatalf("unexpected block len for rowsCount=%d, isVMRemoteWrite=%v; got %d bytes; expecting %d bytes",
|
|
||||||
rowsCount, isVMRemoteWrite, pushBlockLen, expectedBlockLen)
|
|
||||||
}
|
|
||||||
|
|
||||||
if math.Abs(float64(pushBlockLen-expectedBlockLen)/float64(expectedBlockLen)*100) > tolerancePrc {
|
if math.Abs(float64(pushBlockLen-expectedBlockLen)/float64(expectedBlockLen)*100) > tolerancePrc {
|
||||||
t.Fatalf("unexpected block len for rowsCount=%d, isVMRemoteWrite=%v; got %d bytes; expecting %d bytes +- %.0f%%",
|
t.Fatalf("unexpected block len for rowsCount=%d, isVMRemoteWrite=%v; got %d bytes; expecting %d bytes +- %.0f%%",
|
||||||
rowsCount, isVMRemoteWrite, pushBlockLen, expectedBlockLen, tolerancePrc)
|
rowsCount, isVMRemoteWrite, pushBlockLen, expectedBlockLen, tolerancePrc)
|
||||||
|
Loading…
Reference in New Issue
Block a user