Skip to content

Commit

Permalink
PR fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
samsondav committed Jan 29, 2025
1 parent 2ec827c commit e6692eb
Show file tree
Hide file tree
Showing 6 changed files with 144 additions and 154 deletions.
88 changes: 44 additions & 44 deletions core/capabilities/remote/types/messages.pb.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

30 changes: 14 additions & 16 deletions core/services/llo/attested_retirement_report.pb.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 2 additions & 4 deletions core/services/llo/data_source_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -180,8 +180,6 @@ func Test_DataSource(t *testing.T) {
err := ds.Observe(ctx, vals, opts)
require.NoError(t, err)

close(tm.ch)

assert.Equal(t, llo.StreamValues{
2: llo.ToDecimal(decimal.NewFromInt(40602)),
1: llo.ToDecimal(decimal.NewFromInt(2181)),
Expand All @@ -199,7 +197,7 @@ func Test_DataSource(t *testing.T) {
assert.Equal(t, 1, int(pkt.streamID))
assert.Equal(t, opts, pkt.opts)
assert.Equal(t, "2181", pkt.val.(*llo.Decimal).String())
assert.NoError(t, pkt.err)
require.NoError(t, pkt.err)

telems := []interface{}{}
for p := range tm.ch {
Expand All @@ -209,7 +207,7 @@ func Test_DataSource(t *testing.T) {
sort.Slice(telems, func(i, j int) bool {
return telems[i].(*telem.LLOObservationTelemetry).StreamId < telems[j].(*telem.LLOObservationTelemetry).StreamId
})
require.IsType(t, telems[0], &telem.LLOObservationTelemetry{})
require.IsType(t, &telem.LLOObservationTelemetry{}, telems[0])
obsTelem := telems[0].(*telem.LLOObservationTelemetry)
assert.Equal(t, uint32(1), obsTelem.StreamId)
assert.Equal(t, int32(llo.LLOStreamValue_Decimal), obsTelem.StreamValueType)
Expand Down
Loading

0 comments on commit e6692eb

Please sign in to comment.