Skip to content

Commit f8d4a7d

Browse files
committed
PMM-12913 fix the api test
1 parent 969240e commit f8d4a7d

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

api-tests/server/updates_test.go

+2-3
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ import (
2121
"testing"
2222
"time"
2323

24+
"github.com/AlekSi/pointer"
2425
"github.com/davecgh/go-spew/spew"
2526
"github.com/stretchr/testify/assert"
2627
"github.com/stretchr/testify/require"
@@ -98,9 +99,7 @@ func TestCheckUpdates(t *testing.T) {
9899

99100
t.Run("Force", func(t *testing.T) {
100101
params = &server.CheckUpdatesParams{
101-
Body: server.CheckUpdatesBody{
102-
Force: true,
103-
},
102+
Force: pointer.ToBool(true),
104103
Context: pmmapitests.Context,
105104
}
106105
params.SetTimeout(slow) // that call with force can be slow

0 commit comments

Comments
 (0)