1
0
mirror of https://github.com/fumiama/orbyte.git synced 2026-06-05 18:20:31 +08:00

feat: add async conflict detection

This commit is contained in:
源文雨
2025-04-14 22:41:19 +09:00
parent ac9d26dfb9
commit 162407d64e
8 changed files with 86 additions and 17 deletions

View File

@@ -37,7 +37,7 @@ func TestBytesSlice(t *testing.T) {
runtime.GC()
runtime.Gosched()
runtime.GC()
out, in := bufferPool.p.CountItems()
out, in := bufferPool.CountItems()
t.Log(out, in)
if out != 0 {
t.Fail()
@@ -60,7 +60,7 @@ func TestBytesInvolve(t *testing.T) {
}
}
runtime.GC()
out, in := bufferPool.p.CountItems()
out, in := bufferPool.CountItems()
t.Log(out, in)
if out != 0 {
t.Fail()
@@ -80,7 +80,7 @@ func TestBytesParse(t *testing.T) {
}
}
runtime.GC()
out, in := bufferPool.p.CountItems()
out, in := bufferPool.CountItems()
t.Log(out, in)
if out != 0 {
t.Fail()
@@ -107,7 +107,7 @@ func TestBytesCopy(t *testing.T) {
runtime.GC()
runtime.Gosched()
runtime.GC()
out, in := bufferPool.p.CountItems()
out, in := bufferPool.CountItems()
t.Log(out, in)
if out != 0 {
t.Fail()