From 43d696035a1dc31dcf1e0b81240e346f8ba1a2a1 Mon Sep 17 00:00:00 2001 From: mnp-juniper Date: Mon, 23 Dec 2024 02:51:35 -0800 Subject: [PATCH] Fixed formatting --- .../tests/system_base_test/g_protocol_test.go | 20 +++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/feature/system/tests/system_base_test/g_protocol_test.go b/feature/system/tests/system_base_test/g_protocol_test.go index 1104e4c9af7..c8e7ea73080 100644 --- a/feature/system/tests/system_base_test/g_protocol_test.go +++ b/feature/system/tests/system_base_test/g_protocol_test.go @@ -21,7 +21,7 @@ import ( "testing" "time" - "github.com/openconfig/featureprofiles/internal/deviations" + "github.com/openconfig/featureprofiles/internal/deviations" "github.com/openconfig/ondatra" "github.com/openconfig/ondatra/binding/introspect" "google.golang.org/grpc" @@ -60,15 +60,15 @@ func TestGNMIClient(t *testing.T) { conn := dialConn(t, dut, introspect.GNMI, 9339) c := gpb.NewGNMIClient(conn) - if deviations.GnmiGetRequiresConfigType(dut) { - if _, err := c.Get(context.Background(), &gpb.GetRequest{Encoding: gpb.Encoding_JSON_IETF, Path: []*gpb.Path{{Elem: []*gpb.PathElem{}}}, Type: gpb.GetRequest_CONFIG}); err != nil { - t.Fatalf("gnmi.Get failed: %v", err) - } - } else { - if _, err := c.Get(context.Background(), &gpb.GetRequest{Encoding: gpb.Encoding_JSON_IETF, Path: []*gpb.Path{{Elem: []*gpb.PathElem{}}}}); err != nil { - t.Fatalf("gnmi.Get failed: %v", err) - } - } + if deviations.GnmiGetRequiresConfigType(dut) { + if _, err := c.Get(context.Background(), &gpb.GetRequest{Encoding: gpb.Encoding_JSON_IETF, Path: []*gpb.Path{{Elem: []*gpb.PathElem{}}}, Type: gpb.GetRequest_CONFIG}); err != nil { + t.Fatalf("gnmi.Get failed: %v", err) + } + } else { + if _, err := c.Get(context.Background(), &gpb.GetRequest{Encoding: gpb.Encoding_JSON_IETF, Path: []*gpb.Path{{Elem: []*gpb.PathElem{}}}}); err != nil { + t.Fatalf("gnmi.Get failed: %v", err) + } + } } // TestGNOIClient validates that the DUT listens on standard gNOI Port.