1
0
Fork 0
mirror of https://github.com/anyproto/anytype-heart.git synced 2025-06-08 05:47:07 +09:00

disable flaky test

This commit is contained in:
Roman Khafizianov 2024-07-10 16:29:29 +02:00
parent 7b17fd909c
commit 3ccc10735a
No known key found for this signature in database
GPG key ID: F07A7D55A2684852

View file

@ -72,15 +72,6 @@ func TestBuffer_GetReadSeekCloser(t *testing.T) {
_, err = rsc.Read(readData)
assert.Error(t, err, "Read after Close should return an error")
// take the existing buffer from the pool
buf = pool.Get()
// check underlying buffer is returned to the pool
assert.GreaterOrEqual(t, cap(buf.(*buffer).buf), 13, "we should get the same buffer from the pool")
assert.GreaterOrEqual(t, buf.(*buffer).Buffer.Cap(), 13, "we should get the same buffer from the pool")
assert.Equalf(t, 0, len(buf.(*buffer).Buffer.Bytes()), "we should get the reseted buffer from the pool")
assert.Equal(t, []byte("Hello, World!"), buf.(*buffer).buf[0:13])
assert.Equal(t, []byte("Hello, World!"), buf.(*buffer).Buffer.Bytes()[0:13])
err = rsc.Close()
require.NoError(t, err, "Close after Close should not return an error")
debug.SetGCPercent(100)