Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(1732)

Issue 13351043: testing: make LoggingSuite work during SetUpSuite

Can't Edit
Can't Publish+Mail
Start Review
Created:
10 years, 8 months ago by rog
Modified:
10 years, 8 months ago
Reviewers:
mue, mp+182714, natefinch, jameinel
Visibility:
Public.

Description

testing: make LoggingSuite work during SetUpSuite When trying to debug some code, I found that log messages were not being printed during SetUpSuite or TearDownSuite. This patch fixes LoggingSuite in that respect. https://code.launchpad.net/~rogpeppe/juju-core/379-loggingsuite-log-more/+merge/182714 (do not edit description out of merge proposal)

Patch Set 1 #

Patch Set 2 : testing: make LoggingSuite work during SetUpSuite #

Total comments: 2
Unified diffs Side-by-side diffs Delta from patch set Stats (+68 lines, -11 lines) Patch
A [revision details] View 1 chunk +2 lines, -0 lines 0 comments Download
M testing/log.go View 3 chunks +19 lines, -11 lines 2 comments Download
A testing/log_test.go View 1 chunk +47 lines, -0 lines 0 comments Download

Messages

Total messages: 5
rog
Please take a look.
10 years, 8 months ago (2013-08-28 17:23:49 UTC) #1
natefinch
On 2013/08/28 17:23:49, rog wrote: > Please take a look. LGTM
10 years, 8 months ago (2013-08-28 17:33:43 UTC) #2
mue
LGTM
10 years, 8 months ago (2013-08-28 17:36:22 UTC) #3
jameinel
just a thought. https://codereview.appspot.com/13351043/diff/2/testing/log.go File testing/log.go (right): https://codereview.appspot.com/13351043/diff/2/testing/log.go#newcode30 testing/log.go:30: t.setUp(c) It seems a bit odd ...
10 years, 8 months ago (2013-08-28 17:57:01 UTC) #4
rog
10 years, 8 months ago (2013-08-28 17:59:09 UTC) #5
https://codereview.appspot.com/13351043/diff/2/testing/log.go
File testing/log.go (right):

https://codereview.appspot.com/13351043/diff/2/testing/log.go#newcode30
testing/log.go:30: t.setUp(c)
On 2013/08/28 17:57:01, jameinel wrote:
> It seems a bit odd to me to ghave 2 calls to setUp and only 1 call actually
> tearing things down.
> Shouldn't we reset everything after each test finishes?

If we reset everything after each test finishes, then we don't see any log
messages within the TearDownSuite call.
Sign in to reply to this message.

Powered by Google App Engine
RSS Feeds Recent Issues | This issue
This is Rietveld f62528b