Skip to content
This repository has been archived by the owner on Oct 9, 2023. It is now read-only.

Commit

Permalink
Merge branch '99designs-integration'
Browse files Browse the repository at this point in the history
  • Loading branch information
pda committed May 13, 2021
2 parents 82a417c + 018e2e1 commit 260c742
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions runner/cloudwatch.go
Original file line number Diff line number Diff line change
Expand Up @@ -54,10 +54,10 @@ func (lw *logWaiter) streamExists() (bool, error) {
// return early if we match the log stream
if *stream.LogStreamName == lw.LogStreamName {
exists = true
return true
return false
}
}
return lastPage
return !lastPage
})

return exists, err
Expand Down Expand Up @@ -212,7 +212,7 @@ func (lw *logWatcher) printEventsAfter(ctx context.Context, ts int64) (int64, er
ts = *event.Timestamp
}
}
return lastPage
return !lastPage
})
if err != nil {
log.Printf("Printed %d events in %v", count, time.Now().Sub(t))
Expand Down
2 changes: 1 addition & 1 deletion runner/cloudwatch_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -188,7 +188,7 @@ func (cw *mockCloudWatchLogs) FilterLogEventsPages(input *cloudwatchlogs.FilterL
output.Events = append(output.Events, e)
}

if fn(output, len(cw.filterLogEvents) == 0) {
if !fn(output, len(cw.filterLogEvents) == 0) {
cw.Unlock()
return nil
}
Expand Down

0 comments on commit 260c742

Please sign in to comment.