mirror of
https://tvoygit.ru/Djam/abfapi.git
synced 2025-02-23 10:22:45 +00:00
update test
This commit is contained in:
parent
7b0f0ffccb
commit
39427c04ce
1 changed files with 2 additions and 1 deletions
|
@ -6,6 +6,7 @@ import (
|
||||||
"fmt"
|
"fmt"
|
||||||
"io"
|
"io"
|
||||||
"log"
|
"log"
|
||||||
|
"mime/multipart"
|
||||||
"net/http"
|
"net/http"
|
||||||
"net/http/httptest"
|
"net/http/httptest"
|
||||||
"os"
|
"os"
|
||||||
|
@ -96,7 +97,7 @@ func NewMockServer() *MockServer {
|
||||||
shaHash := parts[4]
|
shaHash := parts[4]
|
||||||
|
|
||||||
// Пример ответа для конкретного хеша
|
// Пример ответа для конкретного хеша
|
||||||
if shaHash == "expected_sha1_hash" {
|
if shaHash == "be730b67b175ac8dc96c9006e88e4166713cb1b5" {
|
||||||
response := map[string]interface{}{
|
response := map[string]interface{}{
|
||||||
"sha1_hash": shaHash,
|
"sha1_hash": shaHash,
|
||||||
"file_name": "testfile.txt",
|
"file_name": "testfile.txt",
|
||||||
|
|
Loading…
Add table
Reference in a new issue