sync: 同步 v1.0.4 并脱敏配置与镜像

This commit is contained in:
MiFaZhan
2026-10-29 14:36:49 +08:00
parent 743e8e6e6e
commit 2206a393f7
516 changed files with 18119 additions and 2253 deletions
@@ -2,8 +2,8 @@ package system
import (
"context"
"git.5iot.com/iotlcm-public/iotlcm-admin-svr/internal/model"
"io"
"git.5iot.com/iotlcm-public/iotlcm-admin-svr/internal/model"
"net/http"
"net/http/httptest"
"testing"
@@ -74,7 +74,7 @@ func TestUserCodeHTTPTimeoutAndStatus(t *testing.T) {
started := time.Now()
err := callUserCodeHTTP(context.Background(), model.UserCodeHttpSenderConfig{
Url: server.URL, Timeout: "70ms", SuccessStatus: http.StatusAccepted,
}, "user@example.com", "123456")
}, "xxx@example.com", "123456")
if (err != nil) != (scenario != "success") || time.Since(started) > time.Second {
t.Fatalf("unexpected sender result: %v", err)
}