Skip to content

Commit 8580b19

Browse files
committed
fix spelling errors
Signed-off-by: Lenson <nosnelmil@gmail.com>
1 parent df3ccbc commit 8580b19

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tools/multi_loader/metric/metric_manager_test.go

+2-2
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ func TestLogConsolidation(t *testing.T) {
3838
w.Close()
3939
os.WriteFile(strings.Join([]string{path.Join(logDir, logFileName[0]), (startTime.Add(-time.Minute * 1)).Format(TIMESTAMP_FORMAT), "gz"}, "."), b.Bytes(), 0666)
4040

41-
// Create valid roated log with mixed of old and new timestamp
41+
// Create valid rotated log with mixed of old and new timestamp
4242
b.Reset()
4343
w = gzip.NewWriter(&b)
4444
for i, line := range logData {
@@ -47,7 +47,7 @@ func TestLogConsolidation(t *testing.T) {
4747
w.Close()
4848
os.WriteFile(strings.Join([]string{path.Join(logDir, logFileName[1]), (startTime.Add(time.Minute*time.Duration(2) - time.Second*30)).Format(TIMESTAMP_FORMAT), "gz"}, "."), b.Bytes(), 0666)
4949

50-
// Create current log with special case
50+
// Create current log
5151
f, err := os.OpenFile(path.Join(logDir, logFileName[2]), os.O_WRONLY|os.O_CREATE|os.O_APPEND, 0666)
5252
if err != nil {
5353
assert.Fail(t, err.Error())

0 commit comments

Comments
 (0)