Skip to content

Commit

Permalink
update test_context.go
Browse files Browse the repository at this point in the history
Signed-off-by: dongjiang1989 <[email protected]>
  • Loading branch information
dongjiang1989 committed Mar 7, 2024
1 parent c26996e commit 9d35f50
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion test/e2e/framework/test_context.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,10 @@ limitations under the License.
package framework

import (
"errors"
"flag"
"fmt"
"io/fs"
"os"
"time"

Expand Down Expand Up @@ -367,7 +369,7 @@ func AfterReadingAllFlags(t *TestContextType) {
if err == nil {
return
}
if !os.IsNotExist(errors.Cause(err)) {
if errors.Is(err, fs.ErrNotExist) {
Failf("Failed to setup provider config: %v", err)
}
// We allow unknown provider parameters for historic reasons. At least log a
Expand Down

0 comments on commit 9d35f50

Please sign in to comment.