Skip to content

Commit

Permalink
fixed unit test for falcon for linux vs macos
Browse files Browse the repository at this point in the history
  • Loading branch information
SmithSamuelM committed Dec 21, 2023
1 parent 3cef246 commit db3c09f
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion tests/core/http/falcon/test_falcon.py
Original file line number Diff line number Diff line change
Expand Up @@ -508,7 +508,8 @@ def test_get_static_sink():
# get trial.js
rep = client.simulate_get('/static/index.js')
assert rep.status == falcon.HTTP_OK
assert rep.headers['content-type'] == 'application/javascript; charset=UTF-8'
assert (rep.headers['content-type'] == 'application/javascript; charset=UTF-8' or
rep.headers['content-type'] == 'text/javascript; charset=UTF-8')
assert len(rep.text) > 0
assert rep.text == '// vanilla index.js\n\nm.render(document.body, "Hello world")\n'

Expand Down

0 comments on commit db3c09f

Please sign in to comment.