question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Failing testcase on master

See original GitHub issue

I found the following error in the test suite on master. I have the following in my local ~/.aws/config:

[default]
region = eu-central-1

When I change this region to eu-west-1, then it complains that eu-west-1 is not us-east-1, so it is indeed reading this configuration. I do not want to change my local environment, a test case shouldn’t depend on a local configuration. Why is this test there in the first place?

    def test_region(self):
        import boto3
        _environ = dict(os.environ)

        # when the region is unspecified
        connection = Connection(transport=SQS.Transport)
        channel = connection.channel()
        assert channel.transport_options.get('region') is None
        # the default region is us-east-1
>       assert channel.region == 'us-east-1'
E       AssertionError: assert 'eu-central-1' == 'us-east-1'
E         - eu-central-1
E         + us-east-1

t/unit/transport/test_SQS.py:191: AssertionError

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:5 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
thedrowcommented, Jan 8, 2019

It is checking what the region property is returning. It’s a legitimate unit test in my opinion.

0reactions
auvipycommented, Apr 17, 2022

this is probably already fixed

Read more comments on GitHub >

github_iconTop Results From Across the Web

How to run failed test cases in TestNG & Selenium
Test cases usually fail due to server and network issues, an unresponsive application or validation failure, or even due to scripting issues.
Read more >
Investigate failing test case on master · Issue #371 - GitHub
I believe this is caused by the cache policy which rejects some inserts and thus causes this case where the token should be...
Read more >
What To Do When Tests Fail? - TestProject
Tests usually fail due to server and network issues, an unresponsive application or validation failure, or scripting issues. When failures occur ...
Read more >
iTest: How to run failed test cases again in a Master test-case.
Answer. Add Summarize step at the end of the master test case. Use analysis rules to fetch the failed child test cases from...
Read more >
Debugging Failing Tests and Test Pipelines - GitLab
Fix tests failing in master before other development work: Failing tests on master are treated as the highest priority relative to other development...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found