update test

This commit is contained in:
Sergey Zhemoytel 2025-01-07 22:22:41 +03:00
parent 7b0f0ffccb
commit 39427c04ce

View file

@ -6,6 +6,7 @@ import (
"fmt"
"io"
"log"
"mime/multipart"
"net/http"
"net/http/httptest"
"os"
@ -96,7 +97,7 @@ func NewMockServer() *MockServer {
shaHash := parts[4]
// Пример ответа для конкретного хеша
if shaHash == "expected_sha1_hash" {
if shaHash == "be730b67b175ac8dc96c9006e88e4166713cb1b5" {
response := map[string]interface{}{
"sha1_hash": shaHash,
"file_name": "testfile.txt",