sync: 同步 v1.0.4 并脱敏配置与镜像
This commit is contained in:
@@ -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)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user