Add connect-on-launch and notarized desktop release packaging
This commit is contained in:
@@ -48,7 +48,7 @@ func TestNormalizeTarget(t *testing.T) {
|
||||
func TestConfigRoundTrip(t *testing.T) {
|
||||
dir := t.TempDir()
|
||||
path := filepath.Join(dir, "config.json")
|
||||
cfg := &Config{API: "https://tunnel.example", Routes: map[string]Route{}}
|
||||
cfg := &Config{API: "https://tunnel.example", AutoConnect: true, Routes: map[string]Route{}}
|
||||
if err := cfg.AddRoute("api", "4096", ""); err != nil {
|
||||
t.Fatal(err)
|
||||
}
|
||||
@@ -66,7 +66,7 @@ func TestConfigRoundTrip(t *testing.T) {
|
||||
if err != nil {
|
||||
t.Fatal(err)
|
||||
}
|
||||
if loaded.API != cfg.API || loaded.Routes["api"].Target != "127.0.0.1:4096" {
|
||||
if loaded.API != cfg.API || !loaded.AutoConnect || loaded.Routes["api"].Target != "127.0.0.1:4096" {
|
||||
t.Errorf("round trip: %+v", loaded)
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user