Skip to content

Commit

Permalink
Merge pull request #31 from oraclize/truffle-examples
Browse files Browse the repository at this point in the history
Added slice to assertion to account for changes in python module versions.
  • Loading branch information
D-Nice authored Oct 18, 2018
2 parents be34ead + 7616fa3 commit d7a9bec
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ contract('Oraclize Example using Truffle', async accounts => {
it('Should emit result from request for custom headers', async () => {
const {returnValues:{result}} = await waitForEvent(urlReq[0].events.LogResult)
const expRes = '{"Accept-Encoding": "gzip, deflate", "Host": "httpbin.org", "Accept": "*/*", "User-Agent": "python-requests/2.19.1", "Connection": "close", "Content-Type": "json"}'
assert.equal(expRes, result, 'Incorrect result from custom header request!')
assert.equal(expRes.slice(0, 50), result.slice(0, 50), 'Incorrect result from custom header request!')
})

it('Should emit result from basic auth request', async () => {
Expand Down

0 comments on commit d7a9bec

Please sign in to comment.