Skip to content

Commit

Permalink
tests.py: verbosity level set to 2
Browse files Browse the repository at this point in the history
  • Loading branch information
vasiliyk committed May 27, 2024
1 parent 8f70ace commit f80c724
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions tests.py
Original file line number Diff line number Diff line change
Expand Up @@ -145,11 +145,11 @@ def test_endtoend(self):
}
server = tcollector.StatusServer("127.0.0.1", 32025, collectors) # pylint:disable=no-member
# runs in background until test suite exits :( but it works.
thread = threading.Thread(target=server.serve_forever)
thread.setDaemon(True)
thread = threading.Thread(target=server.serve_forever, daemon=True)
thread.start()

result = tcollector.urlopen("http://127.0.0.1:32025").read() # pylint:disable=no-member
with tcollector.urlopen("http://127.0.0.1:32025") as resource:
result = resource.read()
self.assertEqual(json.loads(result), [c.to_json() for c in collectors.values()])


Expand Down Expand Up @@ -283,4 +283,4 @@ def test_doublePickTwoConnections(self):
tcollector.setup_python_path(cdir) # pylint: disable=maybe-no-member
tcollector.populate_collectors(cdir) # pylint: disable=maybe-no-member

unittest.main()
unittest.main(verbosity=2)

0 comments on commit f80c724

Please sign in to comment.