Skip to content

Commit

Permalink
Removed lines 38-47 as per comment from Sergey Fomin as it is a no-op.
Browse files Browse the repository at this point in the history
  • Loading branch information
basavarajnokia committed Aug 8, 2024
1 parent 50e7644 commit 87d7bbe
Showing 1 changed file with 1 addition and 12 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -35,20 +35,9 @@ func TestGNMISampleMode(t *testing.T) {
p1Stream := samplestream.New(t, dut, gnmi.OC().Interface(p1.Name()).Description().State(), 10*time.Second)
defer p1Stream.Close()

desc := p1Stream.Next()
if desc == nil {
t.Logf("Interface %q telemetry not received before config", p1.Name())
} else {
v, ok := desc.Val()
if !ok {
t.Logf("Interface %q telemetry empty before config", p1.Name())
}
t.Logf("Description before config: %s", v)
}

gnmi.Replace(t, dut, gnmi.OC().Interface(p1.Name()).Config(), dutPort1.NewOCInterface(p1.Name(), dut))

desc = p1Stream.Next()
desc := p1Stream.Next()
if desc == nil {
t.Errorf("Interface %q telemetry not received after config", p1.Name())
} else {
Expand Down

0 comments on commit 87d7bbe

Please sign in to comment.