|
|
@@ -45,6 +45,8 @@ import (
|
|
|
"github.com/elazarl/goproxy/ext/auth"
|
|
|
)
|
|
|
|
|
|
+const testClientPlatform = "test_github.com/Psiphon-Labs/psiphon-tunnel-core/psiphon"
|
|
|
+
|
|
|
func TestMain(m *testing.M) {
|
|
|
flag.Parse()
|
|
|
|
|
|
@@ -512,6 +514,7 @@ func controllerRun(t *testing.T, runConfig *controllerRunConfig) {
|
|
|
|
|
|
var modifyConfig map[string]interface{}
|
|
|
json.Unmarshal(configJSON, &modifyConfig)
|
|
|
+
|
|
|
modifyConfig["DataRootDirectory"] = testDataDirName
|
|
|
|
|
|
if runConfig.protocol != "" {
|
|
|
@@ -555,6 +558,10 @@ func controllerRun(t *testing.T, runConfig *controllerRunConfig) {
|
|
|
t.Fatalf("error processing configuration file: %s", err)
|
|
|
}
|
|
|
|
|
|
+ if config.ClientPlatform == "" {
|
|
|
+ config.ClientPlatform = testClientPlatform
|
|
|
+ }
|
|
|
+
|
|
|
if runConfig.clientIsLatestVersion {
|
|
|
config.ClientVersion = "999999999"
|
|
|
}
|