From a4c37224805803f93f74336c6cd09956cbf64a48 Mon Sep 17 00:00:00 2001 From: garmr Date: Tue, 3 Dec 2024 10:23:46 -0800 Subject: [PATCH] write test config as readable --- integrationtest/integrationtest.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/integrationtest/integrationtest.go b/integrationtest/integrationtest.go index 5e50ef690..b1e839005 100644 --- a/integrationtest/integrationtest.go +++ b/integrationtest/integrationtest.go @@ -27,6 +27,7 @@ import ( hproxy "github.com/getlantern/http-proxy-lantern/v2" "github.com/getlantern/tlsdefaults" "github.com/getlantern/waitforserver" + "google.golang.org/protobuf/encoding/protojson" "google.golang.org/protobuf/proto" "github.com/getlantern/flashlight/v7/apipb" @@ -395,7 +396,7 @@ func (helper *Helper) writeUserConfigFile() error { return err } - out, err := proto.Marshal(cfg) + out, err := protojson.Marshal(cfg) if err != nil { return err }