From 7768daad07c0eaeb331dea1d03de5db5d5dc0400 Mon Sep 17 00:00:00 2001 From: garmr-ulfr <104022054+garmr-ulfr@users.noreply.github.com> Date: Tue, 3 Dec 2024 10:31:01 -0800 Subject: [PATCH] write test config as readable (#1458) --- 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 }