Skip to content

Commit

Permalink
Fix unit tests
Browse files Browse the repository at this point in the history
  • Loading branch information
dprotaso committed Jan 17, 2017
1 parent 6aa0b4e commit a3caa2b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion clients_service_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -217,7 +217,7 @@ var _ = Describe("ClientsService", func() {

err = service.Delete(client.ID, unauthorizedToken)
Expect(err).To(HaveOccurred())
Expect(err).To(BeAssignableToTypeOf(warrant.UnauthorizedError{}))
Expect(err).To(BeAssignableToTypeOf(warrant.ForbiddenError{}))
})
})

Expand Down
2 changes: 1 addition & 1 deletion internal/network/client_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -468,7 +468,7 @@ var _ = Describe("Client", func() {
}
_, err := client.MakeRequest(requestArgs)
Expect(err).To(HaveOccurred())
Expect(err).To(BeAssignableToTypeOf(network.UnauthorizedError{}))
Expect(err).To(BeAssignableToTypeOf(network.ForbiddenError{}))

forbiddenServer.Close()
})
Expand Down

0 comments on commit a3caa2b

Please sign in to comment.