Compile error in Chapter 19-basic-authentication-part2 > final > TILApp > Tests

Just updated with vapor update -y and when executing the tests in the Chapter 19-basic-authentication-part2 > final > TILApp > Tests, I am getting this compile error:

Argument type ‘T?’ does not conform to expected type ‘LosslessHTTPBodyRepresentable’

in function :

“func sendRequest(to path: String, method: HTTPMethod, headers: HTTPHeaders = .init(), body: T? = nil, loggedInRequest: Bool = false, loggedInUser: User? = nil)”

of file “Application+Testable.swift”.

Sorry, I had inadvertently introduced a bug. This topic is to be deleted.
Best regards

1 Like

@mixio Really glad you sorted this one out.