Compare commits
1
Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
7cbb2d7f20 |
+4
-4
@@ -122,12 +122,12 @@ func TestReportStdoutFailsWhileReading(t *testing.T) {
|
|||||||
// still being read, not at the final flush.
|
// still being read, not at the final flush.
|
||||||
dir := "/" + strings.Repeat("d", 4096)
|
dir := "/" + strings.Repeat("d", 4096)
|
||||||
|
|
||||||
recs := make([]scanRec, ioBufSize/len(dir))
|
var recs []scanRec
|
||||||
for i := range recs {
|
for i := range ioBufSize / len(dir) {
|
||||||
recs[i] = scanRec{
|
recs = append(recs, scanRec{
|
||||||
size: 1, head: "h", tail: "t", content: "c",
|
size: 1, head: "h", tail: "t", content: "c",
|
||||||
path: fmt.Sprintf("%s/%d", dir, i),
|
path: fmt.Sprintf("%s/%d", dir, i),
|
||||||
}
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
t.Setenv(databaseEnv, seedDatabase(t, recs))
|
t.Setenv(databaseEnv, seedDatabase(t, recs))
|
||||||
|
|||||||
Reference in New Issue
Block a user