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