mirror of
https://github.com/VictoriaMetrics/VictoriaMetrics.git
synced 2024-12-01 14:47:38 +00:00
22e3fabefd
* [WIP] open tsdb and prometheus integration tests * app/victoria-metrics: fix race condition on parallel tests
13 lines
226 B
Go
13 lines
226 B
Go
// +build integration
|
|
|
|
package test
|
|
|
|
import "github.com/golang/snappy"
|
|
|
|
func Compress(wr WriteRequest) ([]byte, error) {
|
|
data, err := wr.Marshal()
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return snappy.Encode(nil, data), nil
|
|
}
|