make TestCopyLineByLine fail less

https://ci.woodpecker-ci.org/repos/3780/pipeline/20741/32
This commit is contained in:
6543 2024-09-22 18:39:20 +02:00
parent 4909e32ed6
commit 3f3f415dca

View file

@ -83,7 +83,7 @@ func TestCopyLineByLine(t *testing.T) {
assert.Lenf(t, writes, 2, "expected 2 writes, got: %v", writes) assert.Lenf(t, writes, 2, "expected 2 writes, got: %v", writes)
// wait for the goroutine to write the data // wait for the goroutine to write the data
time.Sleep(time.Millisecond) time.Sleep(10 * time.Millisecond)
writtenData := strings.Join(writes, "-") writtenData := strings.Join(writes, "-")
assert.Equal(t, "12345\n-678\n", writtenData, "unexpected writtenData: %s", writtenData) assert.Equal(t, "12345\n-678\n", writtenData, "unexpected writtenData: %s", writtenData)