Browse Source

Add QUIC-OSSH case to controller_test

Rod Hynes 7 years ago
parent
commit
759e69b570
1 changed files with 17 additions and 2 deletions
  1. 17 2
      psiphon/controller_test.go

+ 17 - 2
psiphon/controller_test.go

@@ -57,8 +57,6 @@ func TestMain(m *testing.M) {
 	}
 	defer os.RemoveAll(testDataDirName)
 
-	os.Remove(filepath.Join(testDataDirName, DATA_STORE_FILENAME))
-
 	SetEmitDiagnosticNotices(true)
 
 	initDisruptor()
@@ -431,6 +429,23 @@ func TestFrontedMeekFragmentor(t *testing.T) {
 		})
 }
 
+func TestQUIC(t *testing.T) {
+	controllerRun(t,
+		&controllerRunConfig{
+			expectNoServerEntries:    false,
+			protocol:                 protocol.TUNNEL_PROTOCOL_QUIC_OBFUSCATED_SSH,
+			clientIsLatestVersion:    false,
+			disableUntunneledUpgrade: true,
+			disableEstablishing:      false,
+			disableApi:               false,
+			tunnelPoolSize:           1,
+			useUpstreamProxy:         false,
+			disruptNetwork:           false,
+			transformHostNames:       false,
+			useFragmentor:            false,
+		})
+}
+
 type controllerRunConfig struct {
 	expectNoServerEntries    bool
 	protocol                 string