File tree Expand file tree Collapse file tree 1 file changed +2
-1
lines changed Expand file tree Collapse file tree 1 file changed +2
-1
lines changed Original file line number Diff line number Diff line change @@ -43,6 +43,7 @@ import (
43
43
44
44
mcbuilder "sigs.k8s.io/multicluster-runtime/pkg/builder"
45
45
mcmanager "sigs.k8s.io/multicluster-runtime/pkg/manager"
46
+ mcluster "sigs.k8s.io/multicluster-runtime/pkg/multicluster"
46
47
mcreconcile "sigs.k8s.io/multicluster-runtime/pkg/reconcile"
47
48
48
49
. "github.com/onsi/ginkgo/v2"
@@ -445,7 +446,7 @@ var _ = Describe("Provider race condition", func() {
445
446
case 1 :
446
447
// Concurrently get a cluster.
447
448
_ , err := p .Get (context .Background (), "cluster-1" )
448
- Expect (err ).To (Or (BeNil (), MatchError ("cluster cluster-1 not found" )))
449
+ Expect (err ).To (Or (BeNil (), MatchError (mcluster . ErrClusterNotFound )))
449
450
case 2 :
450
451
// Concurrently list clusters.
451
452
p .ListClusters ()
You can’t perform that action at this time.
0 commit comments