summaryrefslogtreecommitdiff
path: root/logger/logger_test.go
diff options
context:
space:
mode:
Diffstat (limited to 'logger/logger_test.go')
-rw-r--r--logger/logger_test.go4
1 files changed, 1 insertions, 3 deletions
diff --git a/logger/logger_test.go b/logger/logger_test.go
index b3554f3..85efc65 100644
--- a/logger/logger_test.go
+++ b/logger/logger_test.go
@@ -93,9 +93,9 @@ var _ = Describe("Logger", func() {
It("should create a new default logger object", func() {
Expect(L).NotTo(BeNil())
Expect(L.mutex).NotTo(BeNil())
+ Expect(L.threshold).To(Equal(DefaultThreshold))
L.mutex.Lock()
defer L.mutex.Unlock()
- Expect(L.threshold).To(Equal(DefaultThreshold))
Expect(L.backends).To(BeEmpty())
})
})
@@ -105,8 +105,6 @@ var _ = Describe("Logger", func() {
func(level Level) {
err := L.SetThreshold(level)
Expect(err).NotTo(HaveOccurred())
- L.mutex.Lock()
- defer L.mutex.Unlock()
Expect(L.threshold).To(Equal(level))
},
T.Entry("EmergLevel", EmergLevel),