Skip to content

Commit abce22e

Browse files
authored
Logging tear down failures in integ tests (#154)
1 parent 8721506 commit abce22e

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

integration/auth/auth_test.go

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -228,7 +228,9 @@ func postRequest(url string, req []byte) ([]byte, error) {
228228

229229
// deleteUser makes a best effort attempt to delete the given user.
230230
//
231-
// Any errors encountered during the delete are ignored.
231+
// Any errors encountered during the delete are logged and ignored.
232232
func deleteUser(uid string) {
233-
client.DeleteUser(context.Background(), uid)
233+
if err := client.DeleteUser(context.Background(), uid); err != nil {
234+
log.Printf("WARN: Failed to delete user %q on tear down: %v", uid, err)
235+
}
234236
}

0 commit comments

Comments
 (0)