fix: fix test for test server
All checks were successful
build / build (push) Successful in 3m18s

This commit is contained in:
d3m0k1d
2026-01-22 00:25:50 +03:00
parent dca0241f17
commit 95bc7683ea

View File

@@ -14,7 +14,7 @@ func TestWrite(t *testing.T) {
t.Fatal(err)
}
resultCh := make(chan *LogEntry)
resultCh := make(chan *LogEntry, 100) // ← Добавь буфер
go Write(d, resultCh)
@@ -28,7 +28,7 @@ func TestWrite(t *testing.T) {
close(resultCh)
time.Sleep(200 * time.Millisecond)
time.Sleep(2 * time.Second)
err = d.db.QueryRow("SELECT ip FROM requests LIMIT 1").Scan(&ip)
if err != nil {