Skip to content

Commit 604c15a

Browse files
fix flaky/failing tests, update gitignore to include xdist coverage files
1 parent 60ed067 commit 604c15a

File tree

4 files changed

+6
-6
lines changed

4 files changed

+6
-6
lines changed

.gitignore

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
__pycache__
22
.vscode
33
.history
4-
.coverage
4+
.coverage*
55
build/
66
brownie/data/*/
77
brownie/data/*.json

tests/conftest.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ def pytest_sessionstart():
2424
monkeypatch_session = MonkeyPatch()
2525
monkeypatch_session.setattr(
2626
"solcx.get_available_solc_versions",
27-
lambda: ["v0.5.10", "v0.5.9", "v0.5.8", "v0.5.7", "v0.4.25", "v0.4.24", "v0.4.22"],
27+
lambda: ["v0.6.0", "v0.5.10", "v0.5.8", "v0.5.7", "v0.4.25", "v0.4.24", "v0.4.22"],
2828
)
2929

3030

tests/network/test_alert.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -84,10 +84,10 @@ def test_stop():
8484

8585
def test_fire_msg(capfd):
8686
t = AlertTest(False)
87-
alert.new(t, delay=0.02, msg="Fired")
87+
alert.new(t, delay=0.03, msg="Fired")
8888
assert not capfd.readouterr()[0].strip()
8989
t.set_value(True)
90-
time.sleep(0.04)
90+
time.sleep(0.08)
9191
assert capfd.readouterr()[0].strip()[-5:] == "Fired"
9292
assert len(alert.show()) == 0
9393

tests/project/compiler/test_solidity.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -175,9 +175,9 @@ def test_find_solc_versions_install(find_version, msolc):
175175
find_version("^0.4.22", install_latest=True)
176176
assert msolc.pop() == "v0.4.25"
177177
find_version("^0.4.24 || >=0.5.10", install_needed=True)
178-
assert msolc.pop() == "v0.5.10"
178+
assert msolc.pop() == "v0.6.0"
179179
find_version(">=0.4.24", install_latest=True)
180-
assert msolc.pop() == "v0.5.10"
180+
assert msolc.pop() == "v0.6.0"
181181

182182

183183
def test_install_solc(msolc):

0 commit comments

Comments
 (0)