Browse Source

More test case for stream logger

pull/55/head
V2Ray 9 years ago
parent
commit
3f884ed924
  1. 4
      common/log/log_test.go

4
common/log/log_test.go

@ -28,4 +28,8 @@ func TestStreamLogger(t *testing.T) {
}
logger.WriteLog("TestPrefix: ", "Test %s Format", "Stream Logger")
assert.Bytes(buffer.Bytes()).Equals([]byte("TestPrefix: Test Stream Logger Format\n"))
buffer.Reset()
logger.WriteLog("TestPrefix: ", "Test No Format")
assert.Bytes(buffer.Bytes()).Equals([]byte("TestPrefix: Test No Format\n"))
}

Loading…
Cancel
Save