You can read more about this error in this excellent blog. In your example, the compiler is raising error about property weak var server: MockHTTPServer? as It is mutable because var keyword which can introduce data races.
weak var server: MockHTTPServer?
var
data races