You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@skywalking.apache.org by wu...@apache.org on 2022/04/19 07:13:29 UTC
[skywalking-banyandb] branch main updated: Increase time range to fix flaky testing (#107)
This is an automated email from the ASF dual-hosted git repository.
wusheng pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/skywalking-banyandb.git
The following commit(s) were added to refs/heads/main by this push:
new 036d719 Increase time range to fix flaky testing (#107)
036d719 is described below
commit 036d7192c03938300e454aab34801f798e918ec3
Author: Gao Hongtao <ha...@gmail.com>
AuthorDate: Tue Apr 19 15:13:25 2022 +0800
Increase time range to fix flaky testing (#107)
Signed-off-by: Gao Hongtao <ha...@gmail.com>
---
banyand/liaison/grpc/measure_test.go | 2 +-
banyand/liaison/grpc/stream_test.go | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/banyand/liaison/grpc/measure_test.go b/banyand/liaison/grpc/measure_test.go
index f54a172..b25b8a7 100644
--- a/banyand/liaison/grpc/measure_test.go
+++ b/banyand/liaison/grpc/measure_test.go
@@ -127,7 +127,7 @@ func (p *preloadMeasureService) PreRun() error {
func queryMeasureCriteria(baseTs time.Time) *measurev1.QueryRequest {
return pbv1.NewMeasureQueryRequestBuilder().
Metadata("sw_metric", "service_cpm_minute").
- TimeRange(baseTs.Add(-1*time.Minute), baseTs.Add(1*time.Minute)).
+ TimeRange(baseTs.Add(-10*time.Minute), baseTs.Add(10*time.Minute)).
TagProjection("default", "id").
Build()
}
diff --git a/banyand/liaison/grpc/stream_test.go b/banyand/liaison/grpc/stream_test.go
index 269f9c7..994639d 100644
--- a/banyand/liaison/grpc/stream_test.go
+++ b/banyand/liaison/grpc/stream_test.go
@@ -182,7 +182,7 @@ func queryStreamCriteria(baseTs time.Time) *streamv1.QueryRequest {
Limit(10).
Offset(0).
Metadata("default", "sw").
- TimeRange(baseTs.Add(-1*time.Minute), baseTs.Add(1*time.Minute)).
+ TimeRange(baseTs.Add(-10*time.Minute), baseTs.Add(10*time.Minute)).
Projection("searchable", "trace_id").
Build()
}