Przeglądaj źródła

Fix: test compile errors

Rod Hynes 7 lat temu
rodzic
commit
0b667fa6dd
2 zmienionych plików z 2 dodań i 2 usunięć
  1. 1 1
      psiphon/controller_test.go
  2. 1 1
      psiphon/remoteServerList_test.go

+ 1 - 1
psiphon/controller_test.go

@@ -599,7 +599,7 @@ func controllerRun(t *testing.T, runConfig *controllerRunConfig) {
 		t.Fatalf("error initializing datastore: %s", err)
 	}
 
-	serverEntryCount := CountServerEntries("", nil)
+	serverEntryCount := CountServerEntries(config.UseUpstreamProxy(), "", nil)
 
 	if runConfig.expectNoServerEntries && serverEntryCount > 0 {
 		// TODO: replace expectNoServerEntries with resetServerEntries

+ 1 - 1
psiphon/remoteServerList_test.go

@@ -213,7 +213,7 @@ func testObfuscatedRemoteServerLists(t *testing.T, omitMD5Sums bool) {
 		t.Fatalf("error initializing client datastore: %s", err)
 	}
 
-	if CountServerEntries("", nil) > 0 {
+	if CountServerEntries(false, "", nil) > 0 {
 		t.Fatalf("unexpected server entries")
 	}