Skip to content

Commit 68d5fa4

Browse files
committed
fix test
1 parent 46b697e commit 68d5fa4

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

pkg/blob/controllerserver_test.go

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@ import (
3030
"github.com/stretchr/testify/assert"
3131
"google.golang.org/grpc/codes"
3232
"google.golang.org/grpc/status"
33+
"k8s.io/apimachinery/pkg/util/wait"
3334
"k8s.io/utils/pointer"
3435
"sigs.k8s.io/cloud-provider-azure/pkg/azureclients/blobclient"
3536
"sigs.k8s.io/cloud-provider-azure/pkg/azureclients/storageaccountclient/mockstorageaccountclient"
@@ -1259,14 +1260,14 @@ func TestCreateBlobContainer(t *testing.T) {
12591260
containerName: "containerName",
12601261
secrets: map[string]string{},
12611262
clientErr: DATAPLANE,
1262-
expectedErr: fmt.Errorf("timed out waiting for the condition"),
1263+
expectedErr: wait.ErrWaitTimeout,
12631264
},
12641265
{
12651266
desc: "Management API Error",
12661267
containerName: "containerName",
12671268
secrets: map[string]string{},
12681269
clientErr: MANAGEMENT,
1269-
expectedErr: fmt.Errorf("timed out waiting for the condition"),
1270+
expectedErr: wait.ErrWaitTimeout,
12701271
},
12711272
{
12721273
desc: "Random Client Error",

0 commit comments

Comments
 (0)