Skip to content

Commit

Permalink
replace deprecated Poll function to fix linter error
Browse files Browse the repository at this point in the history
  • Loading branch information
ranakan19 committed Mar 27, 2024
1 parent 0674acb commit 60a3477
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion pkg/consoleplugin/consolepluginserver_test.go
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
package consoleplugin

import (
"context"
"io"
"net/http"
"strings"
Expand Down Expand Up @@ -51,7 +52,7 @@ func TestConsolePluginServer(t *testing.T) {
func waitForReady(t *testing.T) {
cl := http.Client{}

err := wait.Poll(DefaultRetryInterval, DefaultTimeout, func() (done bool, err error) {
err := wait.PollUntilContextTimeout(context.TODO(), DefaultRetryInterval, DefaultTimeout, false, func(ctx context.Context) (done bool, err error) {
req, err := http.NewRequest("GET", "http://localhost:9443/status", nil)
if err != nil {
return false, err
Expand Down

0 comments on commit 60a3477

Please sign in to comment.