mirror of
				https://github.com/fluffle/goirc
				synced 2025-10-31 02:08:03 +00:00 
			
		
		
		
	Srsly, fffffuuuu.
This commit is contained in:
		
							parent
							
								
									eea12a554b
								
							
						
					
					
						commit
						63c7915933
					
				
					 1 changed files with 2 additions and 2 deletions
				
			
		|  | @ -59,10 +59,10 @@ func (m writerMap) CheckWrittenAtLevel(t *testing.T, lv LogLevel, exp string) { | |||
| 	} | ||||
| 	// 32 bytes covers the date, time and filename up to the colon in | ||||
| 	// 2011/10/22 10:22:57 log_test.go:<line no>: <level> <log message> | ||||
| 	if len(w.written) <= 33 { | ||||
| //	if len(w.written) <= 33 { | ||||
| 		t.Errorf("Not enough bytes logged at level %s:", LogString(lv)) | ||||
| 		t.Errorf("\tgot: %s", string(w.written)) | ||||
| 	} | ||||
| //	} | ||||
| 	s := string(w.written[32:]) | ||||
| 	// 2 covers the : itself and the extra space | ||||
| 	idx := strings.Index(s, ":") + 2 | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue