# Chapter 11: Testing - compile err

**URL:** <https://forums.kodeco.com/t/chapter-11-testing-compile-err/100818>\
**Category:** Server Side Swift with Vapor\
**Created:** [March 6, 2020, 4:18pm UTC](https://forums.kodeco.com/t/chapter-11-testing-compile-err/100818 "2020-03-06T16:18:35Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![gonzalo](https://assets.chunter.kodeco.com/user_avatar/forums.kodeco.com/gonzalo/32/101253_2.png) [@gonzalo](https://forums.kodeco.com/u/gonzalo)\
**Post date:** [March 6, 2020, 4:18pm UTC](https://forums.kodeco.com/t/chapter-11-testing-compile-err/100818/1 "2020-03-06T16:18:35Z")

</div>

This line in my UserTests.swift,  
let clients = try app.getResponse(to: “(usersURI)(user.id!)/clients”, decodeTo: [Client].self)  
gets a compile error "Ambiguous reference to member ‘Client’ referring to the “[Client]” part.

I’ve modeled my app similar to the book’s TILApp and Client is similar to the Acronym class.

Any clues where I should look to resolved this?  
Your Chapter 11 final TILApp builds just fine.

Gonzalo

---

<div class="post-metadata">

**Author:** ![0xtim](https://assets.chunter.kodeco.com/user_avatar/forums.kodeco.com/0xtim/32/111111_2.png) [@0xtim](https://forums.kodeco.com/u/0xtim)\
**Post date:** [March 6, 2020, 9:32pm UTC](https://forums.kodeco.com/t/chapter-11-testing-compile-err/100818/2 "2020-03-06T21:32:22Z")

</div>

Vapor has it’s own `Client` type which is probably confusing it. Try changing it to `App.Client`

---

<div class="post-metadata">

**Author:** ![gonzalo](https://assets.chunter.kodeco.com/user_avatar/forums.kodeco.com/gonzalo/32/101253_2.png) [@gonzalo](https://forums.kodeco.com/u/gonzalo)\
**Post date:** [March 6, 2020, 9:49pm UTC](https://forums.kodeco.com/t/chapter-11-testing-compile-err/100818/3 "2020-03-06T21:49:13Z")

</div>

That was it! So glad I asked. I’ve been banging my head over this.  
I’ll just rename my model to avoid future confusion. THANK YOU!
