Skip to content

Commit ae7a2fc

Browse files
authored
Add some duration to endTime (#46)
1 parent 4194c82 commit ae7a2fc

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

test_utils.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ func RunFlog(t *testing.T, stream string) {
8585

8686
func QueryLogStreamCount(t *testing.T, client HTTPClient, stream string, count uint64) {
8787
// Query last 10 minutes of data only
88-
endTime := time.Now().Format(time.RFC3339Nano)
88+
endTime := time.Now().Add(time.Second).Format(time.RFC3339Nano)
8989
startTime := time.Now().Add(-10 * time.Minute).Format(time.RFC3339Nano)
9090

9191
query := map[string]interface{}{
@@ -105,7 +105,7 @@ func QueryLogStreamCount(t *testing.T, client HTTPClient, stream string, count u
105105

106106
func QueryTwoLogStreamCount(t *testing.T, client HTTPClient, stream1 string, stream2 string, count uint64) {
107107
// Query last 10 minutes of data only
108-
endTime := time.Now().Format(time.RFC3339Nano)
108+
endTime := time.Now().Add(time.Second).Format(time.RFC3339Nano)
109109
startTime := time.Now().Add(-10 * time.Minute).Format(time.RFC3339Nano)
110110

111111
query := map[string]interface{}{

0 commit comments

Comments
 (0)