mirror of
https://github.com/woodpecker-ci/woodpecker.git
synced 2024-11-12 12:15:00 +00:00
make TestCopyLineByLine fail less
https://ci.woodpecker-ci.org/repos/3780/pipeline/20741/32
This commit is contained in:
parent
4909e32ed6
commit
3f3f415dca
1 changed files with 1 additions and 1 deletions
|
@ -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)
|
||||||
|
|
Loading…
Reference in a new issue