Skip to content

Commit a39270d

Browse files
committed
use error in azcli install check
1 parent 21bd04c commit a39270d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

pkg/providers/azcli_test.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,8 @@ func TestCheckAzCliInstalled(t *testing.T) {
1313
"azure-cli-telemetry": "1.1.0",
1414
"extensions": {}
1515
}`}}
16-
assert.NotPanics(t, func() { az.ValidateAzCliInstalled() })
17-
16+
err := az.ValidateAzCliInstalled()
17+
assert.Nil(t, err)
1818
}
1919
func TestCheckAzCliInstalledError(t *testing.T) {
2020
az := &AzClient{CommandRunner: &FakeCommandRunner{Output: "az", ErrStr: "error"}}

0 commit comments

Comments
 (0)