Skip to content

Commit 9a3731d

Browse files
committed
assert error is not nil
1 parent a49b16f commit 9a3731d

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

cli/logout_test.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -156,6 +156,7 @@ func TestLogout(t *testing.T) {
156156
go func() {
157157
defer close(logoutChan)
158158
err := logout.Execute()
159+
assert.NotNil(t, err)
159160
errRegex := regexp.MustCompile("Failed to log out.\n\tremove URL file: .+: permission denied\n\tremove session file: .+: permission denied")
160161
assert.Regexp(t, errRegex, err.Error())
161162
}()

0 commit comments

Comments
 (0)