Skip to content

Commit

Permalink
Add some duration to endTime
Browse files Browse the repository at this point in the history
  • Loading branch information
trueleo committed Dec 11, 2023
1 parent 4194c82 commit 95dd4d5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test_utils.go
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ func RunFlog(t *testing.T, stream string) {

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

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

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

query := map[string]interface{}{
Expand Down

0 comments on commit 95dd4d5

Please sign in to comment.