Browse Source

Fix tests.

Kruger 9 years ago
parent
commit
501d034ab4
2 changed files with 3 additions and 1 deletions
  1. 2 1
      psiphon/server/api.go
  2. 1 0
      psiphon/server/server_test.go

+ 2 - 1
psiphon/server/api.go

@@ -36,13 +36,14 @@ import (
 const (
 	MAX_API_PARAMS_SIZE = 256 * 1024 // 256KB
 
-	CLIENT_VERIFICATION_REQUIRED    = false
 	CLIENT_VERIFICATION_TTL_SECONDS = 60 * 60 * 24 * 7 // 7 days
 
 	CLIENT_PLATFORM_ANDROID = "Android"
 	CLIENT_PLATFORM_WINDOWS = "Windows"
 )
 
+var CLIENT_VERIFICATION_REQUIRED = false
+
 type requestJSONObject map[string]interface{}
 
 // sshAPIRequestHandler routes Psiphon API requests transported as

+ 1 - 0
psiphon/server/server_test.go

@@ -44,6 +44,7 @@ func TestMain(m *testing.M) {
 	flag.Parse()
 	os.Remove(psiphon.DATA_STORE_FILENAME)
 	psiphon.SetEmitDiagnosticNotices(true)
+	CLIENT_VERIFICATION_REQUIRED = true
 	os.Exit(m.Run())
 }