Index: common/logdog/fetcher/fetcher_test.go |
diff --git a/common/logdog/fetcher/fetcher_test.go b/common/logdog/fetcher/fetcher_test.go |
index d5aa0a198a4ae6982dddd5225cbc1cd544c63574..03e132f672e273db40c56c425a8f30257b080d75 100644 |
--- a/common/logdog/fetcher/fetcher_test.go |
+++ b/common/logdog/fetcher/fetcher_test.go |
@@ -29,7 +29,7 @@ type testSource struct { |
panic bool |
terminal types.MessageIndex |
- maxCount int |
+ maxCount int64 |
maxBytes int64 |
history []int |
@@ -58,7 +58,7 @@ func (ts *testSource) LogEntries(c context.Context, req *LogRequest) ([]*logpb.L |
maxCount = ts.maxCount |
} |
if maxCount <= 0 { |
- maxCount = len(ts.logs) |
+ maxCount = int64(len(ts.logs)) |
} |
maxBytes := req.Bytes |
@@ -70,7 +70,7 @@ func (ts *testSource) LogEntries(c context.Context, req *LogRequest) ([]*logpb.L |
bytes := int64(0) |
index := req.Index |
for { |
- if len(logs) >= maxCount { |
+ if int64(len(logs)) >= maxCount { |
break |
} |