diff --git a/gosnappi/generated_required_test.go b/gosnappi/generated_required_test.go index 81694a8d..bcf4fabe 100644 --- a/gosnappi/generated_required_test.go +++ b/gosnappi/generated_required_test.go @@ -124,9 +124,9 @@ func TestTransmitStateRequired(t *testing.T) { err1 := object.FromYaml(string(data)) protoMarshal, _ := proto.Marshal(object.Msg()) err2 := object.FromPbText(string(protoMarshal)) - assert.Nil(t, err) - assert.Nil(t, err1) - assert.Nil(t, err2) + assert.NotNil(t, err) + assert.NotNil(t, err1) + assert.NotNil(t, err2) } func TestLinkStateRequired(t *testing.T) { object := gosnappi.NewControlState().Port().Link() diff --git a/gosnappi/snappigo_test.go b/gosnappi/snappigo_test.go index c577f5bf..bc324083 100644 --- a/gosnappi/snappigo_test.go +++ b/gosnappi/snappigo_test.go @@ -233,8 +233,8 @@ func TestHttpGetMetricsPortResponse(t *testing.T) { assert.NotNil(t, resp) assert.Nil(t, err) assert.Equal(t, resp.PortMetrics().Items()[0].Name(), string("port1")) - assert.Equal(t, resp.PortMetrics().Items()[0].BytesTx(), int64(2000)) - assert.Equal(t, resp.PortMetrics().Items()[0].BytesRx(), int64(2000)) + assert.Equal(t, resp.PortMetrics().Items()[0].BytesTx(), uint64(2000)) + assert.Equal(t, resp.PortMetrics().Items()[0].BytesRx(), uint64(2000)) } func TestGetMetricsPortResponseError(t *testing.T) { @@ -283,7 +283,7 @@ func TestHttpGetMetricsBgpv4Response(t *testing.T) { assert.NotNil(t, resp) assert.Nil(t, err) assert.Equal(t, resp.Bgpv4Metrics().Items()[0].Name(), string("BGP-1")) - assert.Equal(t, resp.Bgpv4Metrics().Items()[0].RoutesAdvertised(), int32(80)) + assert.Equal(t, resp.Bgpv4Metrics().Items()[0].RoutesAdvertised(), uint32(80)) } func TestGetMetricsBgpv4ResponseError(t *testing.T) {