good morning!!!!

Skip to content
Snippets Groups Projects
Commit 50f5ba5b authored by Felix Lange's avatar Felix Lange
Browse files

ethlog: add test for '%' in log message

This test fails because the log message is formatted twice.
parent cbd785cf
No related branches found
No related tags found
No related merge requests found
......@@ -107,11 +107,11 @@ func TestLoggerPrintf(t *testing.T) {
testLogSystem := &TestLogSystem{level: WarnLevel}
AddLogSystem(testLogSystem)
logger.Errorf("error to %v\n", []int{1, 2, 3})
logger.Warnf("warn")
logger.Warnf("warn %%d %d", 5)
logger.Infof("info")
logger.Debugf("debug")
Flush()
testLogSystem.CheckOutput(t, "[TEST] error to [1 2 3]\n[TEST] warn")
testLogSystem.CheckOutput(t, "[TEST] error to [1 2 3]\n[TEST] warn %d 5")
}
func TestMultipleLogSystems(t *testing.T) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment