Skip to content

Commit

Permalink
Fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
leeyikjiun committed Jan 13, 2025
1 parent 9acf3dc commit dc76a11
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion observability-lib/grafana/builder_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -179,7 +179,7 @@ func TestBuilder_AddPanel(t *testing.T) {

panel := grafana.NewStatPanel(&grafana.StatPanelOptions{
PanelOptions: &grafana.PanelOptions{
Title: "Panel Title",
Title: grafana.Pointer("Panel Title"),
},
})

Expand Down
4 changes: 2 additions & 2 deletions observability-lib/grafana/dashboard_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -21,10 +21,10 @@ func TestGenerateJSON(t *testing.T) {
builder.AddPanel(grafana.NewTimeSeriesPanel(&grafana.TimeSeriesPanelOptions{
PanelOptions: &grafana.PanelOptions{
Datasource: "datasource-name",
Title: "ETH Balance",
Title: grafana.Pointer("ETH Balance"),
Span: 12,
Height: 6,
Decimals: 2,
Decimals: grafana.Pointer(2.0),
Query: []grafana.Query{
{
Expr: `eth_balance`,
Expand Down

0 comments on commit dc76a11

Please sign in to comment.