add tests

This commit is contained in:
2025-06-13 13:01:18 +07:00
parent 2fa0be8bcb
commit b852bebd63
3 changed files with 49 additions and 0 deletions
+23
View File
@@ -0,0 +1,23 @@
package tests
import (
"log"
"testing"
pb "evening_detective/proto"
)
func TestPing(t *testing.T) {
client, close := getClient()
defer close()
ctx, cancel := getContext()
defer cancel()
req := &pb.PingReq{}
_, err := client.Ping(ctx, req)
if err != nil {
log.Fatalf("Ошибка выполнения запроса: %v", err)
}
}